全球主机交流论坛

标题: 谁给我设置下,NGINX的WP规则,我马上就好了 [打印本页]

作者: fanslive    时间: 2009-9-9 18:52
标题: 谁给我设置下,NGINX的WP规则,我马上就好了
谁给我设置下,NGINX的WP规则,我马上就好了
目前我的已经成功吧数据导入,多亏那个帝国王,目前到了最关键时刻了
wp规则,
我之前的规则是
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

连接规则是
http://xxxx.cn/archives/10039.htm
请问下来该怎么样搞呢?

各位大师谢谢了,
万分感谢,谁给我说下,今天还没吃饭,郁闷
作者: cpuer    时间: 2009-9-9 19:02
标题: 回复 1# 的帖子
参考,Wordpress安装某些插件后nginx伪静态规则是否变动:http://www.www.iloc.eu.org/thread-2989-1-1.html
作者: Turing    时间: 2009-9-9 19:07
我也不懂,你用这个自动转换的试试看:

http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

我不折腾了,还是用apache,虽然慢点。。。
作者: cpuer    时间: 2009-9-9 19:09
原帖由 Turing 于 2009-9-9 19:07 发表
我也不懂,你用这个自动转换的试试看:

http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

我不折腾了,还是用apache,虽然慢点。。。

呵呵,生命在于折腾。
作者: fanslive    时间: 2009-9-9 19:30
location / {
        index index.html index.php;
        if (-f $request_filename/index.html){
            rewrite (.*) $1/index.html break;
        }
        if (-f $request_filename/index.php){
            rewrite (.*) $1/index.php;
        }
        if (!-f $request_filename){
            rewrite (.*) /index.php;
        }
    }
    location ~ .*\.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
    }


这个是不是要加到
nginx里面的HTTP里面啊,我
VI了NGINX.Conf
里面要怎么添加啊?
作者: fanslive    时间: 2009-9-9 19:43
问下想让这个配置生效是不是
kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
这个命令呢?
作者: Turing    时间: 2009-9-9 19:56
是的
作者: gdtv    时间: 2009-9-9 20:00
如果不装缓存插件,我会设置,装缓存插件我不懂了
作者: cpuer    时间: 2009-9-9 20:02
原帖由 fanslive 于 2009-9-9 19:43 发表
问下想让这个配置生效是不是
kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
这个命令呢?


是的。
作者: cpuer    时间: 2009-9-9 20:03
原帖由 gdtv 于 2009-9-9 20:00 发表
如果不装缓存插件,我会设置,装缓存插件我不懂了


对啊,缓存插件比较麻烦对nginx。
作者: fanslive    时间: 2009-9-9 20:12
我已经搞好了,真郁闷,整整两天了,感谢上面的!
作者: cpuer    时间: 2009-9-9 22:07
标题: 回复 11# 的帖子





欢迎光临 全球主机交流论坛 (https://www.iloc.eu.org/) Powered by Discuz! X3.4