Articles of http status code 404

如何排除404错误

几天前,我遇到了一个采访,其中一个问题是如果我从networking服务器收到404错误,我该怎么办? 我的回答是检查日志。 面试官说,首先我要ping,并检查是否有连接到服务器。 我目前的工作地点并不经常使用networking服务器 。 我的问题是我们会得到一个404错误,如果我们没有连接到Web服务器?

robots.txt和其他.txt在IIS上返回404?

我们有一个运行Dotnetnuke的IIS站点,我们从另一个组接pipe。 我们已经将robots.txt文件添加到根目录,但是它返回了一个404.实际上根目录中的任何txt文件似乎都会返回404。 我似乎无法find他们可能已经阻止了这一点。 有什么build议么? 编辑:我们有一个干净的IIS服务器上的网站文件和数据库设置duplciate,它在那里工作得很好,所以它似乎是在IIS级别或somethign别的web.config或类似之外。 编辑2:原来这是一个开发人员已经使用模块内的错误导致redirect的txt文件被搞砸了。 谢谢大家回复。

从ms sharepoint扩展(/_vti_bin/owssrv.dll和/MSOffice/cltreq.asp)处理404

MS共享点扩展请求以下文件: /_vti_bin/owssrv.dll 和 /MSOffice/cltreq.asp 这些请求可能会生成很多404日志,这些日志文件难以阅读。 我一直在redirect到/所以他们不出现在错误日志。 redirect到一个不同的文件是处理这些404的最好方法,或者可能导致共享点扩展的问题? 有没有办法简单地忽略,而不是使用.htaccesslogin这些404s?

redmine安装后会出现404错误

我正在用nginx和mysql使用Debian压缩。 在耙db和加载默认数据redmine之后。 当我尝试在浏览器中访问redmine时, http://ipaddress:8080/redmine ,我得到一个404错误 Page not found The page you were trying to access doesn't exist or has been removed. 我的nginxconfiguration文件如下: server { listen 8080; server_name localhost; server_name_in_redirect off; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm index.php; } location ^~/phpmyadmin/ { root /usr/share/phpmyadmin; index index.php; include fastcgi_params; fastcgi_pass […]

使用unicode文件名重新上传文件会创build相同的副本

我正在Debian 6系统上运行一个Django站点,使用gunicorn服务器和处理静态文件的nginx 0.7.67。 文件系统区域设置为sv_SE.UTF-8。 我遇到了另一个用户上传包含unicode字符的文件名的问题。 这导致服务器在尝试提供上传的文件时抛出404错误。 当我从我的系统上传相同的文件时,该站点现在正确地提供该文件。 但是,它并没有删除旧文件,尽pipe它们在各方面似乎完全相同。 以下是当前目录列表。 -rwxr-xr-x 1 www-data www-data 1188260 25 jan 22.53 Läxa 15_geometri.pdf -rwxr-xr-x 1 www-data www-data 1188260 27 jan 10.45 Läxa 15_geometri.pdf 现在怎么可能有两个相同的文件具有相同的(明显的)名称? 首先可能是404的原因,即第一次上传有什么问题? URL和以前一样,只是现在不会抛出404。

Nginx的:如何设置404响应到期?

我的nginx服务器充当另一台服务器的代理,有时返回404s。 我希望404响应可以被caching,就像200响应一样。 但是,我不能使用expires ,因为文档指出: expires仅适用于200,204,301,302和304响应。 请注意,根据HTTP规范,非200响应的caching是完全可能的 。 那么我怎样才能在404响应中设置到期date呢?

使用nginx获取任何文本文件(包括robots.txt)上的404

我最近把我的CentOS 7机器从一个Apachenetworking服务器移到了一个nginxnetworking服务器上,而且在学习nginx的入口和出口时,我仍然在研究各种问题。 我偶然发现的一个问题是,在我的公共Web根目录中,文本文件(如robots.txt)无法访问。 我的服务器块configuration如下: server { listen 80; server_name example.com; root /var/www/example.com/public_html; index index.php; access_log /var/www/example.com/logs/example.com_access.log; error_log /var/www/example.com/logs/example.com_error.log error; location / { index index.php index.html; } location /reports { autoindex on; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } error_page 404 /var/www/html/404.html; error_page 500 502 503 504 […]

错误404与所有页面,但在Apache上的WordPress索引

我正在开发一个简单的WordPress主题,但我可以testing的唯一页面是家庭。 所有其他页面(单个页面,文章,存档等)显示错误404(即使当我使用默认主题)。 我读到这可能是因为我需要一个.htaccess文件,所以我创build了一个(使用下面的代码),将它放在我的网站目录(/ var / www / html /)中,然后重新启动Apache,但问题仍然存在。 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 更多规格: 服务器:Apache 2.4.7(Ubuntu) WordPress版本:4.6 操作系统:Linux Mint 17.3 apache2.conf文件: # This is the main Apache server configuration file. It contains the # configuration directives that give […]

NGINX不能访问html文件和下载php文件

一切工作正常,但我做了很多修改,然后我只能得到一个空白页。 这是一个新的NGINX安装,所以我决定删除/etc/nginx文件并重新安装。 apt-get purge nginx nginx-common nginx-full apt-get install nginx nginx-common nginx-full 现在PHP文件不会加载,奇怪的是我无法访问文档根目录(/ usr / share / nginx / html)中的文件“test.html”。 nginx版本:nginx / 1.10.3 cat /etc/nginx/sites-available/default server { listen 88 default_server; root /usr/share/nginx/html; index index.php index.html; access_log /var/log/nginx/default-access_log; error_log /var/log/nginx/default-error_log; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { #try_files $uri =404; fastcgi_index […]

IIS MODULE_SET_RESPONSE_ERROR_STATUS

我的Web应用程序获取404错误,我也尝试doloto: http: //research.microsoft.com/en-us/projects/doloto/,但报告告诉我是一个压缩问题,我不认为如此原因只是一个页面上有一些ajaxcontroltoolkitfunction。 这是堆栈: ModuleName IIS Web Core Notification 16 HttpStatus 404 HttpReason Not Found HttpSubStatus 0 ErrorCode 2147942402 ConfigExceptionInfo Notification MAP_REQUEST_HANDLER ErrorCode The system cannot find the file specified. (0x80070002) 你可以查看: http : //209.45.92.194 : 82/