找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 54|回复: 6

404错误 lnmp

[复制链接]

17

主题

55

回帖

183

积分

注册会员

积分
183
发表于 2016-5-12 12:45:51 | 显示全部楼层 |阅读模式
折腾一天了,用了军哥的lnmp添加虚拟网后,传程序,安装后只有首页能访问,其他php就是404也不知道为啥,求大神教导。
回复

使用道具 举报

105

主题

708

回帖

1779

积分

金牌会员

积分
1779
发表于 2016-5-12 12:49:52 | 显示全部楼层
"

不选择伪静态也不行啊。添加主机rewrite选择no了,也不行啊。
回复

使用道具 举报

17

主题

55

回帖

183

积分

注册会员

积分
183
 楼主| 发表于 2016-5-12 12:52:54 | 显示全部楼层
添加虚拟网卡干什么,卸了看看
回复

使用道具 举报

94

主题

1792

回帖

3940

积分

论坛元老

积分
3940
发表于 2016-5-12 12:49:00 | 显示全部楼层
写错了,添加虚拟机,rewrite选择了no还是不行啊
回复

使用道具 举报

17

主题

55

回帖

183

积分

注册会员

积分
183
 楼主| 发表于 2016-5-12 13:04:05 | 显示全部楼层
http://moviewallpapers.us/这个是我首页,可以正常访问 然后随便点就404 Not Found  为啥呀,求助
回复

使用道具 举报

17

主题

55

回帖

183

积分

注册会员

积分
183
 楼主| 发表于 2016-5-12 13:21:36 | 显示全部楼层
server { listen 80; #listen [::]:80; server_name moviewallpapers.us; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/moviewallpapers.us;  include none.conf; #error_page 404 /404.html; location ~ [^/]\.php(/|$) { # comment try_files $uri =404; to enable pathinfo try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; #include pathinfo.conf; }  location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; }  location ~ .*\.(js|css)?$ { expires 12h; }  access_log /home/wwwlogs/moviewallpapers.us.log access; }
回复

使用道具 举报

17

主题

55

回帖

183

积分

注册会员

积分
183
 楼主| 发表于 2016-5-12 13:22:56 | 显示全部楼层


还是伪静态上了.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-4-20 14:03 , Processed in 0.029024 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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