标签:root php gif pass http png follow server hello
server {location / {
return 599;
}
location = / {
return 111;
}
location ~ \.php$ {
return 600;
}
location /hello/ {
return 598 "hello world\n";
}
location /index.html {
return 597;
}
location /z {
# show 403
deny all;
}
location /yeqing {
proxy_pass http://www.baidu.com;
}
location ~* \.(gif|jpg|jpeg|png|bmp)$ {
return 602;
}
location ~* \.(js|css|less|woff|eot|svg|ttf|ico|json|csv)?$ {
index a.js;
#return 603;
}
}
参阅:http://www.nginx.cn/115.html
标签:root php gif pass http png follow server hello
原文地址:http://blog.51cto.com/yeqing/2066302