Vhosts ok but no Inet connect

This is a discussion on Vhosts ok but no Inet connect within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi Lately I had problems with my vhosts config. I couldn't get them working. I fixed the problem dooing ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-02-2003
gilbert labelle
 
Posts: n/a
Default Vhosts ok but no Inet connect

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>






  #2 (permalink)  
Old 11-02-2003
gilbert labelle
 
Posts: n/a
Default Re: Vhosts ok but no Inet connect

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



  #3 (permalink)  
Old 11-02-2003
Davide Bianchi
 
Posts: n/a
Default Re: Vhosts ok but no Inet connect

gilbert labelle <email@cache.com> wrote:
> 1- stop the SSL service for a while


This shouldn't be necessary

> 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
  #4 (permalink)  
Old 11-02-2003
gilbert labelle
 
Posts: n/a
Default Re: Vhosts ok but no Inet connect

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...
> gilbert labelle <email@cache.com> wrote:
> > 1- stop the SSL service for a while

>
> This shouldn't be necessary
>
> > 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



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:17 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0