全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: 遍地阳光
打印 上一主题 下一主题

nginx下的wordpress固定连接

[复制链接]
31#
发表于 2009-11-1 15:01:54 | 只看该作者
那你把
                if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php?q=$1 last;
                }
改成
   location /blog/ {
                if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php?q=$1 last;
                }
    }

试下。
32#
 楼主| 发表于 2009-11-1 15:07:46 | 只看该作者

回复 31# 的帖子

还是404.



404 Not Found

--------------------------------------------------------------------------------

nginx/0.7.62
33#
发表于 2009-11-1 15:13:59 | 只看该作者

回复 32# 的帖子

31楼做了新的修正,你再试下。
34#
 楼主| 发表于 2009-11-1 15:16:40 | 只看该作者

回复 33# 的帖子

还是不行。
35#
发表于 2009-11-1 15:17:12 | 只看该作者

回复 34# 的帖子

/usr/local/nginx/sbin/nginx -t  测试结果?
36#
 楼主| 发表于 2009-11-1 15:18:56 | 只看该作者
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
[emerg]: open() "/web/logs/access.log" failed (2: No such file or directory)
configuration file /usr/local/nginx/conf/nginx.conf test failed


返回这个,什么意思?
37#
发表于 2009-11-1 15:21:53 | 只看该作者

回复 28# 的帖子

那我下次想攻击哪个站,直接在这放地址就行了
38#
发表于 2009-11-1 15:25:36 | 只看该作者
原帖由 遍地阳光 于 2009-11-1 15:18 发表
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
[emerg]: open() "/web/logs/access.log" failed (2: No such file or directory)
configuration file /usr/local/nginx/conf/nginx.conf te ...


原来你没开日志,那用这个
server
{
  listen       80;
  server_name www.abc.com;
  index index.html index.htm index.php;
  root  /web/www/abc;

   location /blog/ {
                if (!-e $request_filename) {
                        rewrite ^(.*)$ /index.php?q=$1 last;
                }
    }

  location ~ .*\.(php|php5)?$
   {
    fastcgi_pass  unix:/tmp/php-cgi.sock;
    #fastcgi_pass  127.0.0.1:9000;
    fastcgi_index index.php;
    include fcgi.conf;
   }
  location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
   {
    expires      30d;
   }
  location ~ .*\.(js|css)?$
   {
    expires      12h;
   }
  access_log   off;
}

代替你的server段试试。
39#
 楼主| 发表于 2009-11-1 15:25:43 | 只看该作者

回复 37# 的帖子

代沟有很多牛人的。
40#
发表于 2009-11-1 15:26:20 | 只看该作者
原帖由 34baidu 于 2009-11-1 15:21 发表
那我下次想攻击哪个站,直接在这放地址就行了


可惜xxx.com 不是楼主的域名,否则楼主大发了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-12 04:12 , Processed in 0.072033 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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