Solution to apache website Error 503

Source: Internet
Author: User

The reasons for Apache status 503 are as follows:

1. If the CPU load is too high and the server cannot respond, 503 is returned.
2. The number of system connections exceeds the upper limit of MaxVhostClients. 503 is returned.
3. The number of connections per IP address exceeds the upper limit of MaxConnPerIP. 503 is returned.

After troubleshooting, it was found that the mod_bw module of Apache was set up.

The code is as follows: Copy code

ForceBandWidthModule On
BandWidthModule On
BandWidth all 1024000
Maxconnections all 150

SolutionWe can increase the number of maxconnections to solve this problem. If your server resources are sufficient, we can directly

The code is as follows: Copy code

MaxConnection all 0

No restrictions

To give users a good interface

The code is as follows: Copy code

Vi/usr/local/apache/conf/httpd. conf
# ErrorDocument 500 "The server made a boo ."
# ErrorDocument 404/missing.html
# ErrorDocument 404 "/cgi-bin/missing_handler.pl"
# Both the equivalent path and the absolute address are acceptable.
# ErrorDocument 503 http://www.111cn.net

ErrorDocument 503/notice.html

To sum up, you can modify the number of connections to solve this problem no matter what system you use apache.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.