• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Resolved Unable to block folders in Plesk with nginx

Azurel

Silver Pleskian
Plesk Onyx Version 17.0.17 Update #28

Its a CDN domain for images and I want block images for a spezific folder, so I add:

location ~* /myfolder1/(a|b|c)/ {
deny all
return 403
}

Thats never will happen, but why? Is here a problem with nginx.conf for this domain, because:
server {
location / {
}

location @fallback {
}

location ~ ^/(.*\.(ac3|avi|bmp|bz2|css|cue|dat|doc|docx|dts|eot|exe|flv|gif|gz|htm|html|ico|img|iso|jpeg|jpg|js|mkv|mp3|mp4|mpeg|mpg|ogg|pdf|png|ppt|pptx|qt|rar|rm|svg|swf|tar|tgz|ttf|txt|wav|woff|woff2|xls|xlsx|zip))$ {
try_files $uri @fallback;
}

include "/var/www/vhosts/system/cdn.example.com/conf/vhost_nginx.conf";
}

What can I do?
 
Last edited:
Is this a bug? Can I report it? Is here a Workaround? I think the include must set before @fallback in nginx.conf.

Here is a small issue in default plesk nginx.conf it should be
location ~* ^/........... (~* means case-insensitive regular expression match)
Actual its only catch file types with lowercase, not "Jpg" or "JPG" or "TXT", .....

and why
^/(.*\.(ac3|avi|.......
ant not only?
\.(ac3|avi|.......


EDIT: This topic was moved from "Plesk Onxy for Linux". Because I think this is a important issue in plesk onyx, I create there a new topic. This topic can be deleted.
https://talk.plesk.com/threads/its-...-types-in-additional-nginx-directives.343909/
 
Last edited:
Back
Top