17小时前
大家好,请教一个Nginx虚拟目录映射问题!
我的应用部署在 /mod/share目录下。
我的目的是想通过url /share 以301的方式进入 /mod/share,即时用虚拟路径 /share 映射到 /mod/share 中。包括带参数和文件名也能映射,如通过 http://xxx.com/share/goto.php?a=b 能 301 方式访问 http://xxx.com/mod/share/goto.php?a=b
请问完整的 nginx 配置该怎么配置呢?
谢谢!
...全文