Hey all.
I'm trying to use nginx php-fpm on my forum, and to set friendly url's, I am told to add this to nginx config:
I try adding this using the Additional Nginx Directives, and get this error:
I think if my domain was in a folder, this wouldn't be a problem. I really don't want to change that, though.
Any idea?
Thanks.
I'm trying to use nginx php-fpm on my forum, and to set friendly url's, I am told to add this to nginx config:
Code:
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.php index.html;
}
location /internal_data/ {
internal;
}
location /library/ {
internal;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
I try adding this using the Additional Nginx Directives, and get this error:
Code:
Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/domain.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
I think if my domain was in a folder, this wouldn't be a problem. I really don't want to change that, though.
Any idea?
Thanks.