配置示例
server {
listen 80;
server_name workbench.importnull.com;
location / {
root /web/workbench;
try_files $uri $uri/ @router;
index index.html index.htm index.php;
}
location @router{
rewrite ^.*$ /index.html last;
}
location = /50x.html {
root /usr/share/nginx/html;
}
}