路由器404 not found nginx 404 跳转怎么解决办法

页面出现 404notfound和nginx该怎样处理才能解决这个问题?_百度知道
页面出现 404notfound和nginx该怎样处理才能解决这个问题?
, 看下wo 的那个----&网名可以吗!?
一定可以解决问题的哦 !!是nginx的配置错误哦
其他类似问题
为您推荐:
nginx的相关知识
其他1条回答
怎样更改丫?具体点啊!
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁查看: 5268|回复: 15
恢复备份的时候出现 404 Not Found nginx/1.4.4
恢复备份的时候出现 404 Not Found nginx/1.4.4&&权限已经修改了&&restore。PHP文件已经上传到了DATA 文件夹下面
404是文件不存在,你确认下路径
路径没有问题&&我检查了好几次了
错误码不会骗人,你说对的就对吧
再根据恢复教程操作一遍
又试一遍&&还是这样& &
检查下所用的环境,是否把/data目录取消了php权限
已经把restore.php改为777权限 了&&还不行& &不知道怎么搞
点击导入就出现404了&&用restore.php&&换是一样
Powered bythinkphp部署在nginx下 500错误或404错误解决办法-thinkphp-Php教程-壹聚教程网thinkphp部署在nginx下 500错误或404错误解决办法
thinkphp是一款国内的框架了非常的好用了,但在配置时有一些朋友会碰到一些问题,下面我们来看看小编制碰到的thinkphp部署在nginx下 500错误的解决办法。
nginx是一个高性能并发的服务器软件,配置方面要稍微比apache复杂一点点。
本地部署成功的一个thinkphp框架,部署到服务器的时候,刚开始因为权限问题抛出404错误,然后chown之后,抛出了500的错误,但是首页能够访问。
复查,应该是rewrite出现问题了,找了好多文献,解决方案如下:
location ~ .*\.(php|php5)?$
#fastcgi_pass& unix:/tmp/php-cgi.
fastcgi_pass& 127.0.0.1:9000;
fastcgi_index index.
location ~ \.php
fastcgi_pass&& 127.0.0.1:9000;
fastcgi_index index.
set $path_info &&;
set $real_script_name $fastcgi_script_
if ($fastcgi_script_name ~ &^(.+?\.php)(/.+)$&) {
set $real_script_name $1;
set $path_info $2;
fastcgi_param SCRIPT_FILENAME /mnt/khdb1/wwwroot$real_script_
fastcgi_param SCRIPT_NAME $real_script_
fastcgi_param PATH_INFO $path_
include& /alidata/server/nginx/conf/fastcgi_
解决方案的思路:是由于在配置站点的时候,conf文件应该将整个对服务器的请求更改路径,即从& location ~ \.php& 这个开始的大括号内的,默认的nginxlocation行头location ~ .*\.(php|php5)?$也要改。包括第一行的location都要修改为最上面。就可以解决抛出的500服务器错误&thinkphp 500错误&
nginx下运行出错404错误-找不到文件解决办法
解决方法一:修改ThinkPHP设置,不使用PATH_INFO
解决方法二(推荐):修改nginx设置,支持PATH_INFO
修改nginx.conf和fastcgi-params
php geshi&&
location ~ \.php$ {
location ~ \.php/?.*$ {
fastcgi_param SCRIPT_FILENAME $document_root2$fastcgi_script_
set $fastcgi_script_name2 $fastcgi_script_
if ($fastcgi_script_name ~ &^(.+?\.php)(/.+)$&) {
set $fastcgi_script_name2 $1;
set $path_info $2;
fastcgi_param PATH_INFO $path_
fastcgi_param SCRIPT_FILENAME $document_root2$fastcgi_script_name2;
fastcgi_param SCRIPT_NAME $fastcgi_script_
fastcgi_param SCRIPT_NAME $fastcgi_script_name2;
完整的nginx虚拟主机区块配置如下:
listen 80;
root /www_amiku_
include /www_amiku_cn/.
index index.html index.htm index.
location ~ .*\.(php|php5)/?.*$
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.
#fastcgi_split_path_info ^(.+\.php)(.*)$;
#fastcgi_param PATH_INFO $fastcgi_path_
set $path_info &&;
set $real_script_name $fastcgi_script_
if ($fastcgi_script_name ~ &^(.+?\.php)(/.+)$&) {
set $real_script_name $1;
set $path_info $2;
fastcgi_param SCRIPT_FILENAME /www_amiku_cn$real_script_
fastcgi_param SCRIPT_NAME $real_script_
fastcgi_param PATH_INFO $path_
include fcgi.
另外附贴修改过的.htaccess,以满足nginx的伪静态和apache服务器的规则不同。
#RewriteEngine on
#RewriteRule ^index.html$ index.php/Index/index
#RewriteRule ^([A-Z][a-z]+).html$ index.php/$1/index
#RewriteRule ^([A-Z][a-z]+)-([a-z]+).html$ index.php/$1/$2
#RewriteRule ^([A-Z][a-z]+)-([a-z]+)-([a-z]+)-([0-9]+).html$ index.php/$1/$2/$3/$4
#RewriteRule ^([A-Z][a-z]+)-([a-z]+)-([a-z]+)-([\x00-\xff]+)-([a-z]+)-([0-9]+)-([a-z]+)-([0-9]+).html$ index.php/$1/$2/$3/$4/$5/$6/$7/$8 rewrite ^(.*)/index.html$ $1/index.php/Index/
rewrite ^(.*)/([A-Z][a-z]+).html$ $1/index.php/$2/
rewrite ^(.*)/([A-Z][a-z]+)-([a-z]+).html$ $1/index.php/$2/$3;
rewrite ^(.*)/([A-Z][a-z]+)-([a-z]+)-([a-z]+)-([0-9]+).html$ $1/index.php/$2/$3/$4/$5;
rewrite ^(.*)/([A-Z][a-z]+)-([a-z]+)-([a-z]+)-([\x00-\xff]+)-([a-z]+)-([0-9]+)-([a-z]+)-([0
-9]+).html$ $1/index.php/$2/$3/$4/$5/$6/$7/$8/$9;
上一页: &&&&&下一页:相关内容114网址导航<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
您的访问请求被拒绝 403 Forbidden - ITeye技术社区
您的访问请求被拒绝
亲爱的会员,您的IP地址所在网段被ITeye拒绝服务,这可能是以下两种情况导致:
一、您所在的网段内有网络爬虫大量抓取ITeye网页,为保证其他人流畅的访问ITeye,该网段被ITeye拒绝
二、您通过某个代理服务器访问ITeye网站,该代理服务器被网络爬虫利用,大量抓取ITeye网页
请您点击按钮解除封锁&

我要回帖

更多关于 nginx 404 跳转 的文章

 

随机推荐