Hey
i have to add a custom nginx parameter so that custom seo-urls will be supportet, but after adding it to the cusotm.nginx.conf file in the main directory of the homepage and after restarting nginx, i am getting a nginx error :(
this is the content of the custom nginx.conf
location / {
index index.php;
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(forum/|cms/|wcf/|calendar/|filebase/|blog/|gallery/)?([^.]+)$ /$1index.php?$2 last;
}
and this is the error i get:
Nov 05 15:17:41 domain.tld systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 05 15:17:41 domain.tld nginx[64761]: nginx: [emerg] duplicate location "/" in /var/www/sub.domain.tld/custom-nginx.conf:1
Nov 05 15:17:41 domain.tld nginx[64761]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 05 15:17:41 domain.tld systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 05 15:17:41 domain.tld systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 05 15:17:41 domain.tld systemd[1]: Failed to start A high performance web server and a reverse proxy server.
i hope anyone could help me out :)