nginx

来源:互联网 发布:sql语句定义变量 编辑:程序博客网 时间:2024/05/18 05:31
server { listen 80; server_name zxr.com www.zrx.com; # 静态页面目录 root html/zrx;# 默认首页index index.html; location / {# 用户浏览器端的缓存设置location ~* \.(css|js|jpg|jpeg|gif|png|swf|html|htm|json|xml|svg|woff|ttf|eot|map|icon)$ {expires 1h;if(-f $request_filename) { break;}} # 动态页面 if(!-e $request_filename) { proxy_pass http://127.0.0.1:8088;} } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; }}
0 0
原创粉丝点击