I have the following nginx config, e.g.
server {
listen 80;
server_name example.com
allow 127.0.0.0/8;
When I restart, it warn me:
Restarting nginx: nginx: [warn] server name "127.0.0.0/8" has suspicious
symbols in /etc/nginx/sites-enabled/xxx
Any idea?
Best Answer
I guess you are missing the
;
at the end of theserver_name
directive so it interprets theallow
line as part of the server name.