2011年2月28日星期一

Re: nginx.conf questions

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


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论