• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Additional nginx Directives

Guest
I am trying to add the following nginx configuration to Plesk through
Website & Domains -> Web Server Settings

The conf i am adding is:

location /folder/folder/ { try_files $uri /folder1/folder2/file.php; }
or
location ^~ /folder/folder/ { try_files $uri /folder1/folder2/file.php; }

but it doesn't seem to be working.
/folder/folder/blah-blah/blah-blah/ gives 404
 
any thoughts why "try_files" work on local machine and not on plesk directives ?
 
Back
Top