server {
listen 80;
server_name 192.168.1.117;
location / {
root b.com;
index index.html index.htm index.php;
rewrite ^/$ http://www.c.com; 访问192.168.1.117的ip会转到www.c.com上
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}