
+3
NGINX config test
Hello Everyone!
Ajenti is working fine. but I'm getting
nginx: [emerg] duplicate location "/" in /etc/nginx/conf.d/beaurica.conf:22
nginx: configuration file /etc/nginx/nginx.conf test failed
after adding a website then nginx service stop not working and fails to start again
but if i delete the website nginx service will start working normal again.
Please see the beaurica.conf file below
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen *:80;
server_name be-aurica.com;
access_log /var/log/nginx/beaurica.access.log;
error_log /var/log/nginx/beaurica.error.log;
root /srv/beaurica;
index index.html index.htm index.php;
include /etc/nginx.wp/restrictions.conf;
include /etc/nginx.wp/wordpress.conf;
location / {
return 503;
error_page 503 @maintenance;
}
location @maintenance {
root /var/lib/ajenti/plugins/vh/extras;
rewrite ^(.*)$ /maintenance.html break;
}
}
Thanks for all your help
Ajenti is working fine. but I'm getting
nginx: [emerg] duplicate location "/" in /etc/nginx/conf.d/beaurica.conf:22
nginx: configuration file /etc/nginx/nginx.conf test failed
after adding a website then nginx service stop not working and fails to start again
but if i delete the website nginx service will start working normal again.
Please see the beaurica.conf file below
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen *:80;
server_name be-aurica.com;
access_log /var/log/nginx/beaurica.access.log;
error_log /var/log/nginx/beaurica.error.log;
root /srv/beaurica;
index index.html index.htm index.php;
include /etc/nginx.wp/restrictions.conf;
include /etc/nginx.wp/wordpress.conf;
location / {
return 503;
error_page 503 @maintenance;
}
location @maintenance {
root /var/lib/ajenti/plugins/vh/extras;
rewrite ^(.*)$ /maintenance.html break;
}
}
Thanks for all your help
Customer support service by UserEcho