Código:
server {
listen 80;
listen [::]:80;
root /usr/share/nginx/www/foro;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name wintxcoders.com;
}
Está cerrado con {}
Y tira el error
Código:
Restarting nginx: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/wintxcoders.com:33
nginx: configuration file /etc/nginx/nginx.conf test failed