全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1681|回复: 9
打印 上一主题 下一主题

[疑问] 不知道这个解决了没有

[复制链接]
跳转到指定楼层
1#
发表于 2010-10-8 21:18:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用NordicVps安装了lnmp0.4 还安装了PureFTPd
一切正常很不错 加州的速度确实很快,但是装wp后固定连接只能是默认的,改其他的就显示404错误了看下图:

不知道这么多了个index.php在其中,看了坛子里也有朋友有这样的问题,不知道最后的解决办法是什么,请各位帮助我。谢谢!
2#
发表于 2010-10-8 21:23:32 | 只看该作者
这个和哪儿的VPS没关系。你想着,绑定域名的时候,有个地方让你输入伪静态,输入wordpress就行了。或者,修改你现在的文件,/usr/local/nginx/conf/vhost/yoursite.conf这个文件,把里面的none.conf换成wordpress.conf就可以了。

[ 本帖最后由 小夜 于 2010-10-8 21:25 编辑 ]
3#
发表于 2010-10-8 21:25:41 | 只看该作者
rewrite要nginx用的,搜一下就行
4#
 楼主| 发表于 2010-10-8 21:26:06 | 只看该作者
原帖由 小夜 于 2010-10-8 21:23 发表
这个和哪儿的VPS没关系。

我翻看以前的帖子,可能是安装到lnmp出现的问题。
5#
发表于 2010-10-8 21:26:36 | 只看该作者
原帖由 chairuosen 于 2010-10-8 21:25 发表
rewrite要nginx用的,搜一下就行

lnmp里默认带了wp,typecho,sablg等几个伪静态规则。
6#
发表于 2010-10-8 21:31:47 | 只看该作者
直接伪静态就好 了
7#
发表于 2010-10-8 21:32:36 | 只看该作者
调用WP的伪静态规则
8#
 楼主| 发表于 2010-10-8 21:32:36 | 只看该作者
原帖由 chairuosen 于 2010-10-8 21:25 发表
rewrite要nginx用的,搜一下就行

找到这个:
server {
    listen 8080;
    server_name **.cn;
        root /home/wwwroot__old/;
    access_log  logs/admin-access-log  main;
        location / {
        index index.php index.html;
                rewrite ^/(.+)$ /index.php last;
        }
        location ~ .*\.php$ {                           
        include conf/fastcgi.conf;
            fastcgi_pass   unix:/tmp/php-fastcgi.sock;
                fastcgi_param  SCRIPT_FILENAME  /home/wwwroot__old/$fastcgi_script_name;
        }
}
9#
发表于 2010-10-8 21:36:05 | 只看该作者
/usr/local/nginx/conf/vhost 里面的

server_name **.cn;
                index index.html index.htm index.php default.html default.htm default.php;
                root  /home/wwwroot/blog;

                include discuz.conf;               
              location ~ .*\.(php|php5)?$
                        {
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

添加红色部分吧

评分

参与人数 1威望 +7 收起 理由
xiaoyaohou + 7 搞定了,谢谢指点!

查看全部评分

10#
发表于 2010-10-8 21:36:15 | 只看该作者
没有为静态的图片
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-30 15:05 , Processed in 0.072049 second(s), 16 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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