Articles of http status code 404

IIS6上的间歇性404错误,为传统的ASP内容提供服务

我们有两个运行在集群中的IIS6 Web服务器。 间歇性地,我们收到一个404/500错误,如果这是一个500错误,我收到一个电子邮件的行号,我检查该行的ASP文件,它总是一个包括,检查日志,它被报告为404没有find。 我单独检查服务器,它总是一个产生错误的服务器,通常不是这两个。 包含文件显然存在。 所以出于某种原因,它随机找不到在过去几年中每天都在服务的文件,我正在拔头发,试图弄清楚为什么。 另外,每次发生这种情况时,我必须将问题从群集中删除,执行iisreset,然后将其重新放回群集,然后再正常工作。 任何想法家伙?

无法访问默认的MAC安装定义的虚拟主机 – 请帮忙?

*不能为我的生活找出什么错在这里。 问题:键入transitap.local产生404错误。 系统:Mac OSX10.7 我的/ etc / hosts文件: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 127.0.0.1 transitap.local 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 我的/etc/apache2/http.conf文件: # # This is the main Apache HTTP server configuration […]

为什么服务器错误日志状态许多文件不存在,但文件可访问和网站运作良好

我们将网站迁移到了VPS服务器(CentOS 5.6 + Plesk 9.5),一切正常,但我在Plesk注意到的一个奇怪的事情是error_log文件,大部分时间里它充满了数百个条目,如: … [Thu Aug 10 11:35:48 2011] [error] [client xx.xx.xx.xx] File does not exist: /var/www/vhosts/yourdomain.com/httpdocs/category1 [Thu Aug 10 11:35:48 2011] [error] [client xx.xx.xx.xx] File does not exist: /var/www/vhosts/yourdomain.com/httpdocs/category2 …. 如果我打开这些url(ex. http://yourdomain.com/category2)在我的网页浏览器一切正常,没有404错误,头响应200,所以一切正常,我应该看到我想要的页面。 但是为什么日志文件将其视为错误并指出文件不存在? 另外我想提到“category1”,“category2”不是物理目录,它是.htacess和mod_rewritepipe理path,所以不是真正的文件夹。 mod_rewrite似乎没有正确地告诉日志系统,当它看起来像一个文件/文件夹不是物理上存在但由mod_rewrite处理时,请求不应该被视为404。 任何帮助表示赞赏。 谢谢。 蒂姆

Lighttpd:子域名会给出404错误

自从最后几天以来,我所有的子域名都不再工作了。 我只得到一个404错误/占位符页面。 我没有对Lighttpd.conf或10-simple-vhost.conf进行任何更改。 有没有类似的问题? 我该如何解决这个问题? 这是我的lighttpd.conf server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_rewrite", ) server.document-root = "/var/www/hosts" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" index-file.names = ( "index.php", "index.html", "index.htm", "default.htm", " index.lighttpd.html" ) url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", […]

Lighttpd – 404错误时重写请求

我有问题,如果有可能在发生404错误时运行mod_rewrite规则。 例: 要求: http : //domain.com/files/img/file.jpg 如果没有/files/file.jpg ,那么Lightttpd应该重写请求到文件/files2/img/file.jpg 如何在lighttpd / mod_rewriteconfiguration文件中做到这一点?

Nginx的.zip文件返回404

我已经将Nginx设置为Node的反向代理,并提供我的静态文件和用户上传的图像。 除了我不明白为什么Nginx无法find我的.zip文件,一切都运行得非常好。 这是我的nginx.conf。 user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include mime.types; proxy_cache_path /var/www/web_cache levels=1:2 keys_zone=ooparoopaweb_cache:8m max_size=1000m inactive=600m; sendfile on; upstream *******_node { server 172.27.198.66:8888 max_fails=3 fail_timeout=20s; #fair weight_mode=idle no_rr } upstream ******_json_node { server 172.27.176.57:3300 max_fails=3 fail_timeout=20s; } server { #REDIRECT ALL HTTP REQUESTS FOR […]

nginx proxy_pass POST 404错误

我有nginx代理到一个应用程序服务器,具有以下configuration: location /app/ { # send to app server without the /app qualifier rewrite /app/(.*)$ /$1 break; proxy_set_header Host $http_host; proxy_pass http://localhost:9001; proxy_redirect http://localhost:9001 http://localhost:9000; } 对/ app的任何请求都会转到:9001,而默认网站托pipe在:9000。 GET请求正常工作。 但是每当我提交一个POST请求到/ app / any / post / url,它会导致一个404错误。 通过GET / app / any / post / url直接在浏览器中直接点击url,按预期的方式点击app服务器。 我在网上find了类似问题的其他人,并添加了 proxy_set_header Host $http_host; 但这并没有解决我的问题。 没有logging错误,访问日志如下: # For http://localhost:9000 […]

Azure网站WAWS和几个子域名

我有一个网站mysite.azurewebsites.net和域名mydomain.com 链接mydomain.com到网站成功。 我添加了一个DNS条目Alogging和awverify.mydomain.com CNAME到mysite.azurewebsites.net 现在, http://mydomain.com运作良好 http://anything.mydomain.com返回一个404错误(包括www) 我想更好地了解它如何在DNS设置和WAWSvalidation方面的工作。 我必须告诉Azure每个我想链接到我的网站的子域名吗? 那么,如果我想要将任何 .mydomain.comredirect到我的网站呢? 那可能吗 ? 是不是DNS条目“awverify.mydomain.com”足以certificate我是域和所有子域的合法所有者? 我的意思是:我是否必须设置每个错误的CNAME条目? 谢谢你的任何线索

Nginx的404错误页面的PHP与PARAMS

在Opencart中,404错误显示在这个URL中:/index.php?route=error/not_found这个页面有一个包含所有网站模板的404自定义页面。 我在Nginx中尝试过: error_page 404 = /index.php?route=error/not_found; 但它会去nginx的404错误页面。 如果我只写: error_page 404 = /index.php; 它去索引,但我不想去索引,我想去404 opencart页面。 我也尝试了一个命名的位置,并在一个重写,但我无法得到它的工作: error_page 404 = @error; location @error { rewrite ^.*$ /index.php?route=error/not_found last; } 它也没有工作。 它转到nginx 404错误页面

无法在全新安装中设置nginx + php5-fpm获取404

我只是下载了nginx 1.4,马上就看到“Welcome to nginx!” 消息,那么我已经安装了php5-fpm ,所以我在/usr/share/nginx/html/demo.php上创build了一个php文件,只是用<?php echo "Hello World"; ?> <?php echo "Hello World"; ?>里面。 (我试着在ElementaryOS Ubuntu 12.04的基础上),并遵循本手册: http : //wiki.nginx.org/PHPFcgiExample 然后当我访问http://localhost/demo.php它不起作用,我给了一个404错误。 这是我的/etc/nginx/conf.d/default.conf文件: server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page […]