Hello,
recently I upgraded my plesk to 11.5.3 .. I have one wordpress website and one vBulletin ...
I don't know where and how to enter the needed nginx conf for wordpress -OR- vBulletin in my plesk (or using SSH)
would you please recommend what to do ?
I tried this box but it gives me an error .... (domain.com > webserver settings > Additional nginx directives )
Here is my code (for wordpress : )
and this is the error :
any help is really appreciated ...
recently I upgraded my plesk to 11.5.3 .. I have one wordpress website and one vBulletin ...
I don't know where and how to enter the needed nginx conf for wordpress -OR- vBulletin in my plesk (or using SSH)
would you please recommend what to do ?
I tried this box but it gives me an error .... (domain.com > webserver settings > Additional nginx directives )
Here is my code (for wordpress : )
Code:
location / {
root /var/www/vhosts/domain.com/httpdocs;
index index.php index.html index.htm;
# Wordpress permalinks
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
}
and this is the error :
Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/domain.com/conf/vhost_nginx.conf:2 nginx: configuration file /etc/nginx/nginx.conf test failed
any help is really appreciated ...