Articles of http status code 404

404存在的文件错误?

脚本向我的URL发出GET请求,如下所示: http://mydomain.com/cgi-bin/uu_ini_status_audios.pl?tmp_sid=b742be1d131c4d32237a9f1fcdca659e&rnd_id=0.2363453360320319 不过,我立刻得到了一个404回来: The requested URL /cgi-bin/uu_ini_status_audios.pl was not found on this server. 但是这个脚本存在于我的服务器上,我可以看到这个文件! 它有正确的权限(我给了它777肯定)。 它也由我的apache用户和它在组apache中拥有。 我在想什么? 感谢您的帮助! 更新 我认为这将是一个htaccess(重写),但我不认为它已经是了。 我试图把一个index.php文件放在那里,并尝试通过我的URL访问它,但我甚至不能这样做! 我试过这个: http://mydoamin.com/cgi-bin/index.php – 相同的404错误! 我在myerror日志中得到这个: [Tue Sep 14 14:42:49 2010] [error] [client xx.xxx.xx.xxx] script not found or unable to stat: /var/www/vhosts/mydomain.com/cgi-bin Access_log文件: xx.xxx.xx.xxx – [14 / Sep / 2010:14:48:25 +0200]“GET /cgi-bin/index.php HTTP / 1.1”404 […]

Apache config:返回单个<Location>的404

是否可以让Apache自动使用Location标签为单个URL返回一个404页面? <Location "/some/url"> # ??? </Location> 没有mod_rewrite或其他模块的首选解决scheme。

如何防止漫游器试图猜测我的网站上的链接

我最近安装的logwatch报告显示了这个: ——————— httpd Begin ———————— 0.78 MB transferred in 5864 responses (1xx 0, 2xx 4900, 3xx 0, 4xx 964, 5xx 0) 160 Images (0.16 MB), 857 Content pages (0.62 MB), 4847 Other (0.00 MB) Requests with error response codes 404 Not Found /%E2%80%98planeat%E2%80%99-film-explores-l … greenfudge-org/: 1 Time(s) /10-foods-to-add-to-the-brain-diet-to-help … -function/feed/: 1 Time(s) /10-ways-to-reboot-your-body-with-healthy- … s-and-exercise/: […]

列出Apache access_log中的404个顶级url

我正在寻找一个命令,列出我的apache access_log中的10个或20个顶级404错误URL。 谁能帮我这个? 谢谢

位置指令不起作用

对于我的NGINX服务器,我设置了一个虚拟服务器来清理静态内容。 目前我正在设置,以便图像有一个到期date。 但是,当我为此创build一个位置指令时,所有内容都会导致404错误。 我现在的configuration是这样的: /srv/www/static.conf server { listen 80; server_name static.*.*; location / { root /srv/www/static; deny all; } location /images { expires 1y; log_not_found off; root /srv/www/static/images; } } 注意,这个文件包含在http指令中的/etc/nginx/nginx.conf中 我正在尝试访问图片,比方说… static.example.com/images/screenshots/something.png 。 果然,图片也存在于/srv/www/static/images/screenshots/something.png 。 然而,去说的地址不起作用,只是告诉我404 Not Found 。 但是,如果我删除location /images并更改location /以下… location / { root /srv/www/static; } 有用! 我在这里做错了什么?

当页面存在时404 – IIS 5,ASP.NET 4.0

我有一个运行Server 2003 Datacenter和IIS 5的Web服务器,它托pipe着各种ASP.NET 2.0网站。 我试图添加我通过VS2010testing版编写的ASP.NET 4.0网站,并且在服务器上安装了.NET 4.0 Beta 1。 该网站似乎configuration正确; 匿名访问打开,它指向正确的文件夹,并设置为asp.net 4.0。 为什么当我浏览本地和远程时,它会给我一个404错误?

当没有任何匹配时,从HAProxy服务404

我目前正在使用1.5dev-17重新configurationHAProxy。 我想要做的是在没有后端用于特定请求时返回404错误。 我们当前的configuration使用default_backend来路由到我们的django应用服务器,但是当有大量的探测请求(比如钢笔testing)与其他configuration的后端都不匹配时,我们的django服务器在尝试中停顿为这些无效请求服务,最终返回404。 我想从HAProxy服务404而不是委托给Django后端。 我目前正在用黑客实现这一点: frontend www … default_backend nomatch backend nomatch errorfile 503 /var/www/http/404.http 在404.http文件中,我在头文件中设置了404状态码。 这工作,但感觉非常错误。 用HAProxy有没有更好的方法来实现这一点? 或者我应该使用一个常规的后端,让这个句柄响应404?

IIS不能服务某些文件扩展名

我服务的.JSON文件,但即使该文件存在,IIS访问任何文件时保持抛出404错误。 我试图重命名文件的一个.JS,它的工作原理。 任何指针什么设置可以导致这个问题?

为什么不IIS服务我的静态CSS / JS文件?

我添加了一个ASP.NET MVC3站点到ISS(在debugging器中工作正常)。 当在浏览器中查看网站时,除了所有的CSS和JS文件都返回了404之外,一切似乎都正常工作。 这里是IISpipe理器中的网站: 其他详情: 操作系统:Windows Vista家庭高级版32位(带有SP2) IIS:7.0.6000.16386 Visual Studio 2010 Express与SP1

在我的Apache2服务器上启用HTTPS后 – 我得到每个请求404错误

好的,所以我从来没有使用SSL / HTTPS的经验,我只处理过标准的HTTP。 最近我开始在一个需要SSL的网站上工作。 所以当然,我已经出去研究如何开始。 我已经到了成功安装SSL证书的阶段 – 绿色挂锁出现,服务器响应端口443上的HTTPS请求。我遇到的问题是,无论我做什么,我都不能让任何页面出现使用HTTPS / SSL,但他们似乎很好的端口80 / HTTP(直到我将HTTPredirect到HTTPS)。 简单地说,我可以访问HTTPS站点,但是我的页面没有被发送,而是为每个请求发送一个404。 /etc/apache2/sites-available/[name].conf <VirtualHost *:80> ServerName [serverName] RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=302] </VirtualHost> <VirtualHost *:443> ServerName [serverName] ServerAdmin [email] DocumentRoot [docRoot] # I know the following SSL cert stuff is correct SSLEngine On SSLCertificateFile […]/[domain].crt SSLCertificateKeyFile […]/[certificate].key SSLCertificateChainFile […]/[theotherone].crt ErrorLog […]