容器技术交流

 找回密码
 立即注册
查看: 2726|回复: 2

nginx规则怎么写呀

[复制链接]
发表于 2013-5-17 12:29:41 | 显示全部楼层 |阅读模式
程序给的写法是以下这样:

location  /  {
        if (!-e $request_filename)
        {
                rewrite (.*) /index.php;
        }
}

怎么按lumanager  location /my_dir {#Nginx配置内容......}    这样写呀。

填上配置内容显示404错误,是不是写的不对呀。




发表于 2013-5-17 14:05:53 | 显示全部楼层
if (!-e $request_filename)
        {
                rewrite (.*) /index.php;
        }

 楼主| 发表于 2013-5-17 14:32:19 | 显示全部楼层
Kimwang_Yuen 发表于 2013-5-17 14:05
if (!-e $request_filename)
        {
                rewrite (.*) /index.php;

谢谢已解决。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 10:44 , Processed in 0.029710 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表