RE: [users@httpd] Using apache on 127.0.01 , localhost and internal ip address (192.168.1.3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not an expert in apache, but couldn't you just do Listen *:80 instead of
Listen 192.168.1.3:80?

Tal
 
 

-----Original Message-----
From: Yashesh Bhatia [mailto:yasheshb@xxxxxxxxx] 
Sent: Wednesday, August 30, 2006 9:09 AM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] Using apache on 127.0.01 , localhost and internal ip
address (192.168.1.3)

Hello:

   I'm using Apache 2.2.3 on Fedora Core 5 and have installed it and
configured it to run on my local IP address 192.168.1.3 by using the
following line in the httpd.conf file

Listen 192.168.1.3:80

Now I also want apache deamon to respond to requests on localhost and
127.0.01

How do I go about doing it ? I tried using virtual hosts by uncommenting the
line

LoadModule vhost_alias_module modules/mod_vhost_alias.so Include
conf/extra/httpd-vhosts.conf

and adding the following entries in the file conf/extra/httpd-vhosts.conf

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName localhost
</VirtualHost>
<VirtualHost *:80>
    ServerName 127.0.0.1
</VirtualHost>

However the above does not work (i did restart apache :)). So when i do

http://127.0.0.1/
or
http://localhost/

i get a message
Unable to connect
Firefox can't establish a connection to the server at localhost.
Firefox can't establish a connection to the server at 127.0.0.1

but i i do a
http://192.168.1.3/

it works fine.

Any tips on how to configure httpd.conf and httpd-vhosts.conf to make the
above work is really appreciated.

Thanks.

Yashesh

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/433 - Release Date: 8/30/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/433 - Release Date: 8/30/2006
 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux