Apache environment, localhost has been loading, but 127.0.0.1 can be accessed normally

Source: Internet
Author: User

Apache Environment
localhost:82

Problem:

    1. Browser input localhost:82, no response (all normal yesterday), but 127.0.0.1:82 can access

Case
1. The error log is as follows
Apache Error.log

    1. httpd.conf Red Pen is the place I have changed

    1. The Hosts file is as follows

# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost127.0.0.1 localhostlocalhost 127.0.0.1#0.0.0.1 mssplus.mcafee.com0.0.0.1    mssplus.mcafee.com

Reply content:

Apache Environment
localhost:82

Problem:

    1. Browser input localhost:82, no response (all normal yesterday), but 127.0.0.1:82 can access

Case
1. The error log is as follows
Apache Error.log

    1. httpd.conf Red Pen is the place I have changed

    1. The Hosts file is as follows

# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost127.0.0.1 localhostlocalhost 127.0.0.1#0.0.0.1 mssplus.mcafee.com0.0.0.1    mssplus.mcafee.com

1: Check the port is not the normal listening status. is not an Apache environmental issue.
2: See if Phpinfo () can perform. See if PHP is performing environmental issues.
3: See if the code has a dead loop or bug. Display_error Open the look.
4: Landlord, at least put a code or page what ah. This position problem catch the blind state ah. 囧

At the end of the httpd.conf file, add
Acceptfilter http None
Acceptfilter HTTPS None
And then reboot to see

On-line Baidu came out of the results do not know not allowed

Http://www.oschina.NET/questi ...
Http://httpd.apache.org/docs/....

The servername binding failed from the error log, so httpd has not started correctly

Based on the error message Google, find this, first try it
Http://www.t086.com/code/apac ...

If you still have a problem, try modifying servername?

1. Post your hosts file.
2. Try visiting 127.0.0.1:82

Thank you for your enthusiastic help, I uninstalled the reload of a, can run the

  • 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.