Hi all,
I have a problem with one host rewrite directive that is added by Plesk automatically every time when I reconfigure that host. This is the directive being added:
This coded is added to the automatically generated last_nginx.conf every time when I run
So, I drilled down to /etc/nginx/plesk.conf.d/vhosts and tried to edit that host conf file, but it reverts back and the rewrite directive is added again after reconfiguring the domain with httpdmng.
The vhost.conf file is empty (the one under /var/www/vhosts/system/mysite.com/conf). Also there is nothing in Web Server Settings for that domain - the nginx directives' window is empty.
How can I fix this and get rid of that rewrite directive? I have no ideas as where it comes from.....
I have a problem with one host rewrite directive that is added by Plesk automatically every time when I reconfigure that host. This is the directive being added:
Code:
if ($host ~* ^www.mysite.com$) {
rewrite ^(.*)$ http://mysite.com$1 permanent;
}
This coded is added to the automatically generated last_nginx.conf every time when I run
Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <mysite.com>
So, I drilled down to /etc/nginx/plesk.conf.d/vhosts and tried to edit that host conf file, but it reverts back and the rewrite directive is added again after reconfiguring the domain with httpdmng.
The vhost.conf file is empty (the one under /var/www/vhosts/system/mysite.com/conf). Also there is nothing in Web Server Settings for that domain - the nginx directives' window is empty.
How can I fix this and get rid of that rewrite directive? I have no ideas as where it comes from.....