nginx.conf questions

Dayo nginx-forum at nginx.us
Mon Feb 28 19:23:04 MSK 2011


Just skip the "server_name example.com;" bit.

You don't need the rewrite server for IP address based server.

server {
listen 80;
root /path/to/your/document/root/;

access_log /path/to/where/you/want/to/keep/your/access.log;
error_log //path/to/where/you/want/to/keep/your/error.log;

location /example/ {
index index.html;
....
}

location / {
index index.html;
....
}

}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,179005,179197#msg-179197




More information about the nginx mailing list