Request URL /server-status or 404 Page Not Found Apache Error请求网址/服务器的地位或404未找到网页Apache的错误

In Apache web server, when an administrator wants to check the Apache server status with the command “apachectl status” or “service httpd fullstatus” at shell prompt, the following error may occur:在Apache Web服务器,当管理员要检查Apache服务器的地位,与指挥“ apachectl地位”或“服务的httpd fullstatus ”在shell提示符,下面的错误,可能会发生:

Not Found未找到

The requested URL /server-status was not found on this server.所请求的URL /服务器的地位没有被发现在此服务器上。

If you request the Apache status from web page by viewing http://domain_name/server-status link location, a 404 page not found error will be returned by web browser.如果您的要求, Apache的地位,从网页浏览http://domain_name/server-status链接位置, 1 404未找到网页的错误将被退回,由Web浏览器。

There are several reasons why this problem can occurred.有几个原因,这个问题是可以发生。 First thing to check is to ensure that the mod_status status handler is properly setup and loaded in httpd.conf configuration file.第一件事是检查,以确保该mod_status的地位,处理是正确安装和加载在httpd.conf配置文件。 Using APXS, the following 2 lines must exist:使用的apxs ,以下2行必须存在:

LoadModule status_module /path/to/apache/modules/mod_status.so loadmodule status_module /路径/ /阿帕奇/模组/ mod_status.so
AddModule mod_status.c addmodule mod_status.c

If the lines exist, the problem probably lies on virtual host declaration.如果线的存在,问题可能在于对虚拟主机的宣言。 As a side note, you can also check if the status handler is been activated to show more information (but will slow down a busy server) by locating the following line in httpd.conf (default to off):作为一个方面说明,您也可以勾选如果状态处理程序是被激活,以显示更多信息(但会拖慢一个繁忙的服务器)通过查找下面一行在httpd.conf (默认为关闭) :

ExtendedStatus On extendedstatus对

For virtual host for server-status, ensure that the following line exists in your Apache configuration file:为虚拟主机服务器的地位,确保下面的行存在于你的Apache配置文件:


SetHandler server-status sethandler服务器的地位
Order allow,deny为了让,否认
Deny from all否认所有
Allow from localhost允许从本地

You can change the localhost to your domain name such as .example.com (including dot in front of domain) to allow access from domain address.你可以改变本地,以您的域名如。 example.com (包括点在前面的网域) ,以允许访问由网域位址。 Else localhost restrict access doesn’t allow public access to server-status, and only command shell access locally is possible.否则,本地限制进入不允许公众进入服务器的地位,只有命令外壳进入当地是有可能的。

Note that also if you use NameVirtualHost *:80 directive, or any *:port directive to run multiple name based virtual hosts, this configuration does not allow server-status on any of the publicly accessible addresses.请注意,也如果您使用namevirtualhost * : 80指令,或任何* :港口指令运行多个名称为基础的虚拟主机,此配置不容许服务器的地位,任何有关可公开查阅的地址。 The reason is that the first Virtual Host in the directive is considered the “Default Virtual Host”, and any unknown entries on the NameVirtualHost space whenever user or process attempts to access port 80 on any IP address, will go to this virtual host by default.原因是第一虚拟主机在该指令被认为是“默认虚拟主机” ,以及任何未知的参赛作品就namevirtualhost空间,每当用户或进程尝试访问端口80的任何IP地址,将前往这个虚拟主机预设。 Hence the 404 page not found error is returned.因此, 404未找到网页错误是回来了。 Furthermore the server-status configuration cannot be placed inside of a VirtualHost directive to be read from a full domain name.此外,服务器的地位,配置不能置于内的一个虚拟主机指令,读从一个完整域名。

There are 2s solution and workarounds for this scenario, either by making the server listen on an alternative port (such as port 8080), or allowing only internal or local access.有2s的解决方案,并为替代这种情况下,无论是由决策服务器,听取关于替代港口(如港口8080 ) ,或只允许内部或本地访问。

To change to another port, simply adding “Listen 8080″ to the configuration, and you can access the server status from external by using http://domain:8080/server-status in any web browser.要改变到另一个港口,只要加入“倾听8080 ”的配置,您可以访问该服务器的地位,从外部用http://domain:8080/server-status在任何Web浏览器。

To allow only local access for commands such as ‘apachectl status’ or ’service httpd fullstatus’, simply switch each * to the actual IP address to work from, then accessing from localhost (127.0.0.1) will work.只允许本地接入的命令,如' apachectl地位'或'服务的httpd fullstatus ' ,只要开关,每个*实际的IP地址的工作由,然后进入从本地( 127.0.0.1 )会的工作。

For example, change from:举例来说,改变由:

NameVirtualHost *:80 namevirtualhost * : 80

to

NameVirtualHost 10.0.0.3:80 namevirtualhost 10.0.0.3:80

Once configuration file is modified correctly, restart Apache HTTPD server.一旦配置文件修改正确,请重新启动的Apache的httpd服务器。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



2 Responses to “Request URL /server-status or 404 Page Not Found Apache Error” 2反应“的要求,网址/服务器的地位或404未找到网页Apache的错误”

  1. LYNDA RIDLEY琳达朵瑞德利
    December 28th, 2007 01:37 2007年12月28日1时37分
    1

    Hi,嗨,
    I hope you dont mind me asking you, but i’ve been searching on Google for some help as i’m totally stuck - and then I found you !!我希望你不要介意我问你,但我一直在Google上搜索一些帮助,因为我完全坚持-然后我发现您!
    My website went down about 3 weeks ago and I cant get in touch wih the man who set my site up for me.我的网站上下降了约3星期前我和cannot取得联系的wih该名男子谁设置我的网站为我。
    I’m trying to get onto my site and its just telling me that the certificate has expired, but I dont know what to do.我要上我的网站和其刚刚告诉我,该证书已过期,但我不知道该怎么办。
    I am desperate for help but am not too good on computers so dont understand all the ‘lingo’ and any advise would need to be in simple terms.我绝望的帮助,但现在不是太好的电脑上,所以不用明白,所有'行话'和任何意见,便须在简单的条款。
    I would be very very grateful if you could point me in the right direction.我会非常非常感谢如果您能点,我在正确的方向前进。
    Thanks hopefully,感谢希望,
    Lynda琳达朵

  2. admin政府当局
    December 28th, 2007 02:23 2007年12月28日2时23分
    2

    You can still visit even though SSL certificate is expired.您仍然可以访问,即使SSL证书已过期。 Just accept the security warning.刚刚接受安全警告。 Looks like your site is having configuration error on web server, probably virtual hosts or redirection error.看起来像您的网站是有配置错误Web服务器,可能是虚拟主机或重新导向错误。

Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

The requested URL / was not found on this server. 所请求的URL / 没有被发现在此服务器上。 - - The requested URL was not found on this server. 所请求的URL没有被发现在此服务器上。 - - The requested URL was not found on this server 所请求的URL没有被发现在此服务器上 - - The requested URL was not found on this server. 所请求的URL没有被发现在此服务器上。 - - The requested URL /server-status was not found on this server. 所请求的URL /服务器的地位没有被发现在此服务器上。 - - The requested URL / was not found on this server 所请求的URL /没有被发现在此服务器上 - - The requested URL returned error: 404 所请求的URL返回错误: 404 - - The requested URL /server-status was not found on this server 所请求的URL /服务器的地位没有被发现在此服务器上 - - The requested URL was not found on this server 所请求的URL没有被发现在此服务器上 - - The requested URL /xampp/ was not found on this server. 所请求的URL / xampp /没有被发现在此服务器上。 - - The requested URL http:// was not found on this server. 所请求的URL的http://没有被发现在此服务器上。 - - Apache Status URL Apache的地位网址 - - apache The requested URL / was not found on this server. 阿帕奇所请求的URL /没有被发现在此服务器上。 - - The requested URL was not found on this server. 所请求的URL没有被发现在此服务器上。 - - apache the requested url was not found on this server. 阿帕奇所请求的URL没有被发现在此服务器上。 - - apache server-status 404 Apache服务器地位404 - - all 全部 - - The requested URL /apache2-default/ was not found on this server. 所请求的URL / Apache2中默认/没有被发现在此服务器上。 - - The requested URL /server-status was not found on this server. 所请求的URL /服务器的地位没有被发现在此服务器上。 - - the request url was not found on this server 请求的URL没有被发现在此服务器上 - - The requested URL /index_files/--WEBBOT-SELF-- was not found on this server. 所请求的URL / index_files/--webbot-self--没有被发现在此服务器上。 - - The requested URL was not found on this server. 所请求的URL没有被发现在此服务器上。 apache 阿帕奇 - - Not Found The requested URL was not found on this server 未找到所请求的URL没有被发现在此服务器上 - - Not Found The requested URL / was not found on this server. 未找到所请求的URL /没有被发现在此服务器上。 - - Not Found The requested URL was not found on this server. 未找到所请求的URL没有被发现在此服务器上。 - - The requested URL was not found on this server 所请求的URL没有被发现在此服务器上 - - "The requested URL / was not found on this server" “请求的网址/是在此服务器上找不到” - - apachectl server-status apachectl服务器的地位 - - server-status virtualhost 服务器的地位,虚拟主机 - - apache url not found Apache的网址未找到 - - Not Found The requested URL was not found on this server. 未找到所请求的URL没有被发现在此服务器上。 - - url server 网址服务器 - - wordpress The requested URL was not found on this server. WordPress所请求的网址在此服务器上找不到。 - - mod_status 404 mod_status 404 - - server-status 404 服务器的地位404 - - the requested url was not found on this server APACHE 所请求的URL没有被发现在此服务器上的Apache - - apachectl status apachectl地位 - - "The requested URL / was not found on this server." “请求的网址/是在此服务器上找不到” 。 - - how to enable server-status in apache 如何使服务器的地位,在Apache - - apache2 The requested URL / was not found on this server. Apache2中所请求的URL /没有被发现在此服务器上。 - - apache server-status not found Apache服务器地位未找到 - - apache http server:The requested URL / was not found on this server. Apache HTTP服务器:所请求的URL /没有被发现在此服务器上。 - - requested URL not found on server 请求的URL没有发现在服务器上 - - wordpress The requested URL was not found on this server WordPress所请求的网址在此服务器上找不到 - - /server-status was not found on this server. /服务器的地位没有被发现在此服务器上。 - - localhost The requested URL / was not found on this server. 本地所请求的URL /没有被发现在此服务器上。 - - was not found on this server Apache 没有被发现在此服务器上的Apache - - error The requested URL was not found on this server. 错误所请求的URL没有被发现在此服务器上。 - - The requested URL /Admin was not found on this server 所请求的URL /政府当局是在此服务器上找不到 - - apache error 404 Apache的错误404 - -