Request URL /server-status or 404 Page Not Found Apache Error Yêu cầu URL / server-status hoặc 404 Không tìm thấy trang Apache Error
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: Trong máy chủ web Apache, khi một quản trị viên muốn kiểm tra tình trạng máy chủ Apache với lệnh "tình trạng apachectl" hoặc dịch vụ "httpd fullstatus" tại dấu nhắc trình bao, các lỗi sau đây có thể xảy ra:
Not Found Không tìm thấy
The requested URL /server-status was not found on this server. URL yêu cầu / server-tình trạng không tìm thấy trên máy chủ này.
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. Nếu bạn yêu cầu tình trạng Apache từ trang web bằng cách xem địa điểm liên kết http://domain_name/server-status, một trang 404 không tìm thấy lỗi sẽ được trả lại bằng trình duyệt web.
There are several reasons why this problem can occurred. Có nhiều lý do tại sao vấn đề này có thể xảy ra. First thing to check is to ensure that the mod_status status handler is properly setup and loaded in httpd.conf configuration file. Điều đầu tiên để kiểm tra là để đảm bảo xử lý tình trạng mod_status là đúng cách thiết lập và nạp vào tập tin cấu hình httpd.conf. Using APXS, the following 2 lines must exist: Sử dụng APXS, các 2 dòng sau đây phải tồn tại:
LoadModule status_module /path/to/apache/modules/mod_status.so LoadModule status_module / path / to / apache / modules / mod_status.so
AddModule mod_status.c AddModule mod_status.c
If the lines exist, the problem probably lies on virtual host declaration. Nếu những dòng tồn tại, vấn đề có lẽ nằm trên máy chủ ảo khai báo. 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): Là một phụ lưu ý, bạn cũng có thể kiểm tra nếu xử lý tình trạng này được kích hoạt để hiển thị thông tin thêm (nhưng sẽ làm chậm một máy chủ bận) bằng cách định vị các dòng sau trong httpd.conf (mặc định để tắt):
ExtendedStatus On ExtendedStatus Trên
For virtual host for server-status, ensure that the following line exists in your Apache configuration file: Đối với máy chủ ảo cho các máy chủ-trạng thái, bảo đảm rằng những dòng sau tồn tại trong tập tin cấu hình Apache của bạn:
SetHandler server-status SetHandler server-status
Order allow,deny Đặt hàng cho phép, từ chối
Deny from all Từ chối tất cả
Allow from localhost Cho phép từ 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. Bạn có thể thay đổi localhost thành tên miền của bạn như. Example.com (bao gồm cả dấu chấm ở phía trước của tên miền) để cho phép truy cập từ địa chỉ tên miền. Else localhost restrict access doesn't allow public access to server-status, and only command shell access locally is possible. Else localhost giới hạn truy cập không cho phép truy cập vào máy chủ công cộng tình trạng, và chỉ có lệnh truy cập trình bao tại địa phương là có thể.
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. Cũng lưu ý rằng nếu bạn sử dụng NameVirtualHost *: 80 chỉ thị, hoặc bất kỳ *: cổng chỉ để chạy nhiều tên dựa trên máy ảo, cấu hình này không cho phép máy chủ tình trạng trên bất kỳ địa chỉ truy cập công cộng. 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. Lý do là người đầu tiên chủ ảo trong các chỉ thị được coi là "Default Virtual Host", và bất kỳ mục không rõ về không gian NameVirtualHost bất cứ khi nào người dùng hoặc quá trình nỗ lực để truy cập vào cổng 80 trên bất kỳ địa chỉ IP, sẽ đi đến máy chủ ảo theo mặc định . Hence the 404 page not found error is returned. Do đó trang 404 không tìm thấy lỗi được trả lại. Furthermore the server-status configuration cannot be placed inside of a VirtualHost directive to be read from a full domain name. Hơn nữa cấu hình máy chủ tình trạng không thể được đặt bên trong của một chỉ thị VirtualHost để được đọc từ một tên miền đầy đủ.
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. Có 2s giải pháp và cách giải quyết cho các kịch bản này, hoặc bằng cách làm cho máy chủ lắng nghe trên một cổng khác (như là cổng 8080), hoặc chỉ cho phép truy cập nội bộ hoặc địa phương.
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. Để thay đổi đến cảng khác, chỉ cần thêm "Listen 8080" để cấu hình, và bạn có thể truy cập vào tình trạng máy chủ từ bên ngoài bằng cách sử dụng http://domain:8080/server-status trong bất kỳ trình duyệt 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. Để cho phép truy cập vào địa chỉ cho lệnh như 'apachectl tình trạng' hoặc 'dịch vụ httpd fullstatus', chỉ cần chuyển đổi mỗi * tới địa chỉ IP thực tế để làm việc từ, sau đó truy cập từ localhost (127.0.0.1) sẽ làm việc.
For example, change from: Ví dụ, thay đổi từ:
NameVirtualHost *:80 NameVirtualHost *: 80
to tới
NameVirtualHost 10.0.0.3:80 NameVirtualHost 10.0.0.3:80
Once configuration file is modified correctly, restart Apache HTTPD server. Sau khi được sửa đổi tập tin cấu hình chính xác, khởi động lại máy chủ Apache httpd.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.
Related Articles Bài viết liên quan
- Apache Status (whm-server-status) in cPanel WebHost Manager Returns Blank Page Tình trạng Apache (WHM-server-status) trong cPanel WebHost Returns đốc Blank Trang
- cPanel WHM Failed to Receive Status Information From Apache Error cPanel WHM Không Nhận Tình trạng thông tin từ Apache Error
- Apache Warn NameVirtualHost *:80 Has No VirtualHosts Error When Start Apache NameVirtualHost * Cảnh báo: 80 Có Không Lỗi VirtualHosts Khi Bắt đầu
- winnt_accept: Asynchronous AcceptEx failed Error in Apache Log winnt_accept: Lỗi không đồng bộ AcceptEx thất bại trong Apache Đăng nhập
- Fix Internal Server Error When Accessing Easy Apache in cPanel WebHosting Manager Internal Server Error Fix Khi Truy cập dễ dàng Apache trong cPanel WebHosting Manager
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Cải thiện Apache Web Server Security: Sử dụng ServerTokens và ServerSignature để Disable Header
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Cài đặt Web Server trong FreeBSD 6,0 với 2,2 Apache, MySQL 5.0 và PHP 5 - Phần 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Cài đặt Web Server trong FreeBSD 6,0 với 2,2 Apache, MySQL 5.0 và PHP 5 - Phần 5
- Running apachectl status Returns lynx: not found Error Chạy apachectl tình trạng nhận lynx: Không tìm thấy lỗi
- FreeBSD Apache HTTP Accept Filter Error FreeBSD Apache HTTP Accept Filter Error










































December 28th, 2007 02:23 28 Tháng Mười Hai 2007 02:23
You can still visit even though SSL certificate is expired. Bạn vẫn có thể truy cập mặc dù giấy chứng nhận SSL là hết hạn. Just accept the security warning. Chỉ cần chấp nhận các cảnh báo an ninh. Looks like your site is having configuration error on web server, probably virtual hosts or redirection error. Hình như trang web của bạn là có lỗi cấu hình trên máy chủ web, máy chủ ảo có thể là lỗi hoặc chuyển hướng.
December 28th, 2007 01:37 28 Tháng Mười Hai 2007 01:37
Hi, Chào,
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 !! Tôi hy vọng bạn không nhớ tôi yêu cầu bạn, nhưng tôi đã tìm kiếm trên Google cho một số trợ giúp như tôi hoàn toàn bị mắc kẹt - và sau đó tôi tìm thấy bạn!!
My website went down about 3 weeks ago and I cant get in touch wih the man who set my site up for me. Trang web của tôi đã đi xuống khoảng 3 tuần trước và tôi nhận được trong cant wih chạm vào người thiết lập trang web của tôi lên cho tôi.
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. Cố tôi là để có được lên trang web của tôi và chỉ của nó nói cho tôi rằng chứng chỉ đã hết hạn, nhưng Tôi không biết phải làm gì.
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. Tôi tuyệt vọng để giúp đỡ, nhưng không quá tốt trên các máy tính để dont hiểu tất cả các 'lingo' và tư vấn cho bất kỳ sẽ cần phải được trong điều kiện đơn giản.
I would be very very grateful if you could point me in the right direction. Tôi sẽ rất rất biết ơn nếu bạn có thể chỉ cho tôi đi đúng hướng.
Thanks hopefully, Nhờ hy vọng,
Lynda Lynda