全球主机交流论坛
标题:
不知道这个解决了没有
[打印本页]
作者:
xiaoyaohou
时间:
2010-10-8 21:18
标题:
不知道这个解决了没有
使用NordicVps安装了lnmp0.4 还安装了PureFTPd
一切正常很不错 加州的速度确实很快,但是装wp后固定连接只能是默认的,改其他的就显示404错误了看下图:
不知道这么多了个index.php在其中,看了坛子里也有朋友有这样的问题,不知道最后的解决办法是什么,请各位帮助我。谢谢!
作者:
小夜
时间:
2010-10-8 21:23
这个和哪儿的VPS没关系。你想着,绑定域名的时候,有个地方让你输入伪静态,输入wordpress就行了。或者,修改你现在的文件,/usr/local/nginx/conf/vhost/
yoursite
.conf这个文件,把里面的none.conf换成wordpress.conf就可以了。
[
本帖最后由 小夜 于 2010-10-8 21:25 编辑
]
作者:
chairuosen
时间:
2010-10-8 21:25
rewrite要nginx用的,搜一下就行
作者:
xiaoyaohou
时间:
2010-10-8 21:26
原帖由
小夜
于 2010-10-8 21:23 发表
这个和哪儿的VPS没关系。
我翻看以前的帖子,可能是安装到lnmp出现的问题。
作者:
小夜
时间:
2010-10-8 21:26
原帖由
chairuosen
于 2010-10-8 21:25 发表
rewrite要nginx用的,搜一下就行
lnmp里默认带了wp,typecho,sablg等几个伪静态规则。
作者:
奇尺大乳
时间:
2010-10-8 21:31
直接伪静态就好 了
作者:
kkey
时间:
2010-10-8 21:32
调用WP的伪静态规则
作者:
xiaoyaohou
时间:
2010-10-8 21:32
原帖由
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;
}
}
作者:
edmin
时间:
2010-10-8 21:36
/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;
}
添加红色部分吧
作者:
大飞机
时间:
2010-10-8 21:36
没有为静态的图片
欢迎光临 全球主机交流论坛 (https://sunk.eu.org/)
Powered by Discuz! X3.4