Apache Server configuration support - Vhosts ok but no Inet connect

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > Vhosts ok but no Inet connect





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Vhosts ok but no Inet connect
gilbert labelle

2004-01-19, 7:14 am

Hi

Lately I had problems with my vhosts config. I couldn't get them working. I
fixed the problem dooing 2 things
1- stop the SSL service for a while
2- added entries in hosts in the following format : 127.0.0.10x
www.siteX.fake

Now all sites can be called locally by their names in Mozilla but ...
I've lost my Inet access !!!

To have the vhosts accessible locally, I must disable eth0 device unless I
recieve a message telling to add x1-6-00-40-f4-7f-3e-fb to the hosts file,
and all adresses local or else entered in Mozilla lead to a "not found"
message. And of course I can't access Inet !

I'm running RH9 server-config with default install for Apache,

Here are excerpts of my conf files

etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.0.100 www.site1.fake
127.0.0.101 www.site2.fake


conf/httpd.conf
listen 80
listen 8080

namevirtualhost *

<virtualhost *>
documentroot /var/www/html/www.site1.com/www
servername www.site1.fake
</virtualhost>

<virtualhost *>
documentroot /var/www/html/www.site2.com/www
servername www.site2.fake
</virtualhost>






gilbert labelle

2004-01-19, 7:14 am

Hi

My mouse did walk on the menu bar and sent the message before I finish it !!
;-)

For all that can work I must not have a working internet connection. So even
the cable is disconnected or the eth0 interface is disabled.

Is it possible that this distribution of apache be buggy ? or what am I
doing wrong ?

Thanks



"gilbert labelle" <email@cache.com> a écrit dans le message de
news:V_8pb.6193$of7.98921@wagner.videotron.net...
quote:

> Hi
>
> Lately I had problems with my vhosts config. I couldn't get them working.


I
quote:

> fixed the problem dooing 2 things
> 1- stop the SSL service for a while
> 2- added entries in hosts in the following format : 127.0.0.10x
> www.siteX.fake
>
> Now all sites can be called locally by their names in Mozilla but ...
> I've lost my Inet access !!!
>
> To have the vhosts accessible locally, I must disable eth0 device unless I
> recieve a message telling to add x1-6-00-40-f4-7f-3e-fb to the hosts file,
> and all adresses local or else entered in Mozilla lead to a "not found"
> message. And of course I can't access Inet !
>
> I'm running RH9 server-config with default install for Apache,
>
> Here are excerpts of my conf files
>
> etc/hosts
> 127.0.0.1 localhost.localdomain localhost
> 127.0.0.100 www.site1.fake
> 127.0.0.101 www.site2.fake
>
>
> conf/httpd.conf
> listen 80
> listen 8080
>
> namevirtualhost *
>
> <virtualhost *>
> documentroot /var/www/html/www.site1.com/www
> servername www.site1.fake
> </virtualhost>
>
> <virtualhost *>
> documentroot /var/www/html/www.site2.com/www
> servername www.site2.fake
> </virtualhost>
>
>
>
>
>
>




Davide Bianchi

2004-01-19, 7:14 am

gilbert labelle <email@cache.com> wrote:
quote:

> 1- stop the SSL service for a while



This shouldn't be necessary
quote:

> etc/hosts
> 127.0.0.1 localhost.localdomain localhost
> 127.0.0.100 www.site1.fake
> 127.0.0.101 www.site2.fake



You should have somethig like

127.0.0.1 www.site1.fake
127.0.0.1 www.site2.fake

and so on. No need to use multiple IPs.

Maybe, the problem is that your Internet connection is rewriting
the /etc/hosts file. Check it (activate your connection and then
check your /etc/hosts file) or check if your /etc/resolv.conf
contains

order hosts bind

And fix which one that is broken.

Davide
gilbert labelle

2004-01-19, 7:14 am

Hi Davide

I made several tests and one tells me that there's something wrong with RH
itself. Disabling the apache service didn't lead to any normal connection to
inet from where my conclusion.

I'll reinstall everything from the ground up and try to make the whole thing
roll. If not I'll try to install apache 1.3 in place of v2.

I'll be back

Thanks Davide.

"Davide Bianchi" <davideyeahsure@onlyforfun.net> a écrit dans le message de
news:bo38dc$174nl3$7@ID-18487.news.uni-berlin.de...
quote:

> gilbert labelle <email@cache.com> wrote:
>
> This shouldn't be necessary
>
>
> You should have somethig like
>
> 127.0.0.1 www.site1.fake
> 127.0.0.1 www.site2.fake
>
> and so on. No need to use multiple IPs.
>
> Maybe, the problem is that your Internet connection is rewriting
> the /etc/hosts file. Check it (activate your connection and then
> check your /etc/hosts file) or check if your /etc/resolv.conf
> contains
>
> order hosts bind
>
> And fix which one that is broken.
>
> Davide




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com