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 我的數字生活論壇 . 。
Related Articles相關文章
- cPanel WHM Failed to Receive Status Information From Apache Error的cPanel的WHM沒有收到狀態信息從Apache的錯誤
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Apache的地位(的WHM服務器的地位)在網頁主機的cPanel經理回報的空白頁
- Running apachectl status Returns lynx: not found Error運行apachectl地位回報猞猁:沒有發現錯誤
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules添加斜線到去年底的網址。 htaccess的重寫規則
- SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder徐友好重寫方法動議網址從子目錄,以根父文件夾
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log winnt_accept :異步acceptex失敗錯誤在Apache日誌
- WordPress Permalinks Does Not Work in xampp Setup在WordPress永久不工作, xampp安裝
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4安裝Web服務器在FreeBSD的6.0與2.2的Apache , MySQL 5.0的和PHP 5 -第4部分
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files開始的Apache的httpd失敗,由於無法打開,或沒有這樣的mod_bwlimited , mod_log_bytes或mod_bandwidth檔案
- PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5中無法打開HTTP請求流與fopen或fsockopen職能

































December 28th, 2007 01:37 2007年12月28日1時37分
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琳達朵
December 28th, 2007 02:23 2007年12月28日2時23分
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服務器,可能是虛擬主機或重新導向錯誤。