httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanjay tripathi <>
Subject Re: [users@httpd] how to enable in httpd.conf
Date Thu, 23 Feb 2006 03:35:19 GMT
       Do Step by Step !!
  1:- First you need to Resolve your localhost from your local host
      a) Please check with /etc/hosts file, there should be Entry like  localhost.localdomain  localhost
      b) Edit httpd.conf file

zhou jian <> wrote:
  Hello everyone,

I want to enable in httpd.conf so I can
access the site with http://localhost or I searched over google and found the
following solution. I tried but it didn't work.( It
return with error that the httpd can't bind to the
port something. ) 

Since the following post was released two years ago
while I am using httpd 2.XXX version. It may outdated.
Do you guys know how to setup that in httpd.conf if
that is still the case?


First, make a backup of your httpd.conf file in case
you break something while editing it.

Open httpd.conf and find the line that begins with
ServerName. Edit it so that it looks like this:


Then find the line that begins with Listen and then an
IP address or hostname. Edit it to look like this:


If you find a second "Listen" line that designates
port 80, leave it alone. It should already read:

Listen 80

As long as the only listen lines in httpd.conf that
are not commented out with a # are:

Listen 80

Then Apache will only accept connections from your
local machine on port 80. Restart apache to make your
changes take effect. You can test to see if it worked
by typing into your web browser. If it
worked you should see a default apache page.

This is all off of the top of my head, but I think it
should work. If it doesn't, just restore your original
httpd.conf file from your backup and restart apache
again and you'll be no worse off than you were before.

If you want to be extra safe, you can also configure
your firewall to block INBOUND connections on port 80.
Make sure you don't block outbound port 80 or you
won't be able to load any external webpages from that

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around 

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 

The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail:
" from the digest:
For additional commands, e-mail:

 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used
View raw message