nginx中配置emlog的rewrite规则
时间:2014-07-05 13:20 来源:linux.it.net.cn 作者:IT网
nginx中配置emlog的rewrite规则,在emlog站点的nginx配置文件里加入:
复制代码代码如下:
location / {
index index.php index.html;
if (!-e $request_filename)
{
rewrite ^/(.+)$ /index.php last;
}
}
然后,重启nginx生效。
(责任编辑:IT)
nginx中配置emlog的rewrite规则,在emlog站点的nginx配置文件里加入:
复制代码代码如下:
location / {
index index.php index.html; if (!-e $request_filename) { rewrite ^/(.+)$ /index.php last; } } 然后,重启nginx生效。 (责任编辑:IT) |