我看到很多notified-SplashPage和verify-SplashPage条目出现在我们的Apache错误日志 [Wed Jan 20 15:00:22 2010] [error] [client xxxxx] File does not exist: /home/site/htdocs/notified-SplashPage, referer: http://www.google.co.uk/search?hl=en&source=hp&q=xxxxx [Wed Jan 20 15:00:22 2010] [error] [client xxxxx] File does not exist: /home/site/htdocs/verify-SplashPage, referer: http://www.google.co.uk/search?hl=en&source=hp&q=xxxxxx 还有其他类似的模式(通知合规等),似乎总是与谷歌连接。 任何人都知道谷歌正在试图找出什么? 如果不是谷歌,有没有人知道他们打算做什么?
这里是我的php-fpmconfiguration是: location @site { fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_intercept_errors on; error_page 404 /404; } 由于启用了fastcgi_intercept_errors ,当我的PHP路由器返回404时,Nginx将redirect到/404 。 很好 。 但是由于/404是由我的PHP应用程序生成的,而且我的PHP应用程序正确设置了404响应代码,那么Nginx将尝试再次处理该错误! (这明显以循环结束) 有针对这个的解决方法吗?
升级到Drupal 6.12后,我无法访问我的网站上的pipe理部分 – 我得到一个页面找不到错误。 我已经能够testing/检查的东西: 我有干净的url启用,但试图绕过他们也无法正常工作,并在网站的其他部分的url都很好。 所以我怀疑是这样的。 menu_router表格也很好看。 我已经确认.htaccess设置正确,Mod_Rewrite也是如此。 该网站的其余部分工作正常 我已经在settings.php中设置了基础url,但是没有任何效果 我有rootcandy为pipe理部分的主题,并删除了这一点。 任何想法为其他事情尝试?
我有一个域名注册active-domain.com,昨天我改变了我的名字服务器到我的主机,但是我决定在最后一刻切换我的主机,并再次改变它们。 现在,24小时左右,网站仍然会偶尔拉起旧主机上的网站。 如果我清除caching和flushdns,它通常会自行解决。 这也发生在我网站的其他访问者身上。 有什么build议么? 该网站是: http : //comegetheated.com
在由包含通配符条目(例如* .example.com)的DNS链接的Apache2服务器上,在任何VirtualHost中未定义为ServerNames的子域指向第一个定义的VirtualHost,在我的示例中,这是000-default。 我的问题: 如何获得未使用的子域(在任何虚拟主机中未使用的子域)向发出请求的客户端返回404错误? 最好在服务器日志中显示为404。 我研究了以下几种可能性: 将任何无效的子域名redirect到主页或其他页面。 这种方法的问题是,当有人链接到您的网站this.company.sucks.example.com,客户端将会看到您的主页或在我的情况下000-default,如果我不redirect。 谢谢, 麦克指出了这一点。 (正则expression式“吸”等肯定不是一个选项) 让默认的VirtualHost指向一个不存在的目录。 Apache不喜欢这一点,每次重新加载警告。 除了警告,一切似乎都很好。 这似乎是一个黑客。 这对任何人来说似乎都是一个问题(不pipe多么小)? 将默认的VirtualHost指向index.php被禁止的文件夹,从而创build一个403状态码。 这是令人困惑的,并使得以下事情过于复杂:例如说,您使用每个用户的子域(显然是使用通配符DNS的一个重要原因),并且用户能够在username.example中查看其他configuration文件。 COM。 这个解决scheme让用户感到困惑,完全不是我想要做的。 我的理想sollution将让用户知道没有什么可以查看他input的url。 最好有一个404和input地址的错误日志条目(而不是其他地址)。 任何帮助将不胜感激!
我刚刚在debian上安装了nginx,并在nginx.conf文件中做了基本configuration(添加服务器部分) user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 1024; # multi_accept on; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; # tcp_nodelay on; # gzip on; # gzip_disable "MSIE [1-6]\.(?!.*SV1)"; # include /etc/nginx/conf.d/*.conf; # include /etc/nginx/sites-enabled/*; server { listen 80; server_name localhost; […]
自从几个星期以来,一些网站突然无法使用。 我们得到一个404 – 所请求的网页无法显示。 基本上,解决这个问题的唯一方法是当我重新启动服务器上的DNS客户端/服务器。 服务器是最新的,但我没有更新浏览器,因为我没有在SBS上使用它。 有没有人听说过这个? 我又一无所知,仍然努力寻找解决scheme。 最好的问候和感谢您的宝贵帮助! 大卫。 信息: 戴尔PowerEdge 2950 16GO Ram 双四核Intel Xeon 2.83Ghz Microsoft Windows Server 2008 Standard,FE 6,0,6001 SP1 x64
我最近在切换到Cloudflare后遇到了一个问题,解决scheme是基本上阻止Cloudflarecaching404响应。 在我们的负载均衡的多服务器设置中,偶尔会出现404s,但是它们可以通过rsync(通过lsyncd)快速修复。 在Cloudflare之前,随着rsync的工作,对404ed文件的重新请求将很快变为200。 但是,由于Cloudflarecaching基于caching头的所有数据,并且apache和nginx都没有发送404caching头,所以Cloudflare最终caching了404响应。 我一直在寻找一个解决scheme,在apache和nginx(全球所有托pipe域名)上为404s全局添加这样一个头文件,但到目前为止都是空白的。 谁能帮忙? 谢谢。
这个问题的大部分答案是, 设置fastcgi_param SCRIPT_FILENAME,它将工作 (斜体格式化是打破?!)。 我已经设置了这个variables(正确),但它仍然显示错误,而不是404页面,因为问题的根源在这里: location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } 一个不存在的path被传递给php5-fpm,这将返回打印日志中的错误,如下所示: FastCGI sent in stderr: "Unable to open primary script: … (No such file or directory)" while reading response header from upstream 因此,在fastcgi_pass行之前,必须有一个条件来检查文件是否真的存在,或者如果fpm工作返回“找不到文件”,指导nginx返回一个404页面。 我怎样才能做到这一点?
我已经成功地为IIS7设置了自定义静态错误页面。 IIS7目前正在作为Java Tomcat应用程序的网关。 问题是当404错误页面被提供时,它被提供一个HTTP 200状态docker。 我想要一种configurationIIS以继续发送HTTP 404的方法。错误页面在webroot中以静态页面的forms存在。 这是我的web.config的主要部分: <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS Redirect" enabled="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" /> </rule> <rule name="Reverse Proxy" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="http://localhost:8080/{R:1}" /> <conditions> <add input="{R:1}" pattern="error/*." negate="true" /> </conditions> </rule> </rules> </rewrite> <httpErrors errorMode="Custom" […]