Title: RE: [expert] Help with Apache virtual hosting

When you type the url in the browser are you using spanish.org and english.org?  I have the same setup and I don't have any problems.  I have put my urls in my /etc/hosts file.

Rich

> -----Original Message-----
> From: Dan Axtell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: [expert] Help with Apache virtual hosting
>
>
> First, thanks to all those folks who answered my question
> about modems.
>
> I'm setting a small web/email server using LM 8.0 with virtual IP
> addresses for different domains.  However, one site has to be in
> two languages, where one URI points to an English subdirectory,
> and the other URI points to a Spanish subdirectory.
>
> Virtual hosting via IP numbers an Apache 1.3.19 works fine; combining
> it with named virtual hosting does not seem to be working.  
>
> I am setting /etc/httpd/conf/vhosts/Vhosts.conf like this:
>
> NameVirtualHost 1.2.3.4

> <VirtualHost 1.2.3.4>
> User nobody
> Group nobody
> DocumentRoot /path/to/spanish
> ServerName spanish.org
> ErrorLog /var/log/httpd/span_error_log
> </VirtualHost>
> <VirtualHost 1.2.3.4>
> User nobody
> Group nobody
> DocumentRoot /path/to/english
> ServerName english.org
> ErrorLog /var/log/httpd/engl_error_log
> </VirtualHost>
>
> What's happening is that whichever virtual host I put first becomes
> the default site for both URI's.  Does anyone know how to correctly
> combine IP-based virtual hosts with name-based virtual hosts?  The
> apache docs suggest the approach I tried above, but it doesn't work.
>
> Thanks in advance,
>
> Dan
>
>
>
>
> Make a difference, help support the relief efforts in the U.S.
> http://clubs.lycos.com/live/events/september11.asp
>
>

Reply via email to