我遇到一个需求是把 /html/* 的请求都指向 /index.html ,但是不能用重定向功能
/html/*
/index.html
请问在配置文件如何实现呢?谢谢大家
web nginx nginx.conf
这样应该就可以了
location /html/ { proxy_pass http://127.0.0.1/index.html; }
可能 127.0.0.1 根据自己的实际情况需要调整的。
nginx怎么反向代理到node?
用git管理的django项目如何部署和管理?
关于Nginx的http_gzip_static_module和http_gzip_modul...
web开发 500 inter server error详细日志找不到
nginx怎么绑定域名?
nginx location 搜索算法问题!?