- Server operating system version
- Ubuntu 24.04.1
- Plesk version and microupdate number
- 18.0.64
Hi All,
I have been making some additions to my nginx config file in order to redirect users from domain.com/pages/example.php to domain.com/example. I was stuck on it for a while, with the location block not seeming to be matched unless I used an equal sign for exact matching. After commenting out the rest of my config, it was still being overridden somewhere. I adjusted to to just return a 403 to make it easier to test.
location /pages/example.php {
return 403;
}
My nginx config file now only consists of this, but is somehow being overridden. Surely something on plesk is causing this, any ideas?
I have been making some additions to my nginx config file in order to redirect users from domain.com/pages/example.php to domain.com/example. I was stuck on it for a while, with the location block not seeming to be matched unless I used an equal sign for exact matching. After commenting out the rest of my config, it was still being overridden somewhere. I adjusted to to just return a 403 to make it easier to test.
location /pages/example.php {
return 403;
}
My nginx config file now only consists of this, but is somehow being overridden. Surely something on plesk is causing this, any ideas?