httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: How to setup non-Ip virtual hosts (fwd)
Date Wed, 11 Sep 1996 11:04:19 GMT
Rob Hartill wrote:
> 
> 
> not acked
> 
> ----- Forwarded message from Philippe Marcel -----
> 
> Sender: pmarcel@hpcoop01.cern.ch
> Message-Id: <32368764.1069@hpcoop01.cern.ch>
> Date: Wed, 11 Sep 1996 11:33:25 +0200
> From: Philippe Marcel <pmarcel@hpcoop01.cern.ch>
> Organization: Data Conversion Service / CERN
> X-Mailer: Mozilla 3.0 (X11; I; HP-UX A.09.05 9000/715)
> Mime-Version: 1.0
> To: apache-bugs@mail.apache.org
> Cc: pmarcel@hpcoop01.cern.ch
> Subject: How to setup non-Ip virtual hosts
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hello,
> 
> sorry for boring you, but i sent news in the
> comp.infosystems.www.servers.unix but i didn't have good answers.
> Can you help me ?
> Else i will be obliged to give up Apache.
> 
> I have one station with one hostname and one alias declared on the
> DNS server.
> 
> hpcopr01 is the main hostname and
> dcswww is a IP alias
> 
> # nslookup dcswww
> Name Server:  d-name-1.cern.ch
> Address:  128.141.200.5
> 
> Name:    hpcopr01.cern.ch
> Address:  128.141.202.153
> Aliases:  dcswww.cern.ch
> 
> 
> I would like to have two services : one serves with hpcopr01 and the
> other one serves with dcswww.
> 
> <VirtualHost dcswww.cern.ch>
> Servername hpcoop01.cern.ch
> DocumentRoot /usr/web/service1
> </VirtualHost>
> 
> <VirtualHost hpcoop01.cern.ch>
> Servername station.cern.ch
> DocumentRoot /usr/web/service2
> </VirtualHost>
> 
> it doesn't work.
> 
> the most simply possible, how can i setup my configs files for that ?
> What else i must take care of ?

The ServerName directive must have the correct name for each virtual host. That
is:

<VirtualHost dcswww.cern.ch>
Servername dcswww.cern.ch
DocumentRoot /usr/web/service1
</VirtualHost>

<VirtualHost hpcoop01.cern.ch>
Servername hpcoop01.cern.ch
DocumentRoot /usr/web/service2
</VirtualHost>

Or hpcopr01.cern.ch, depending on which bit of your message is right.

Cheers,

Ben.

> 
> apache 1.1.1 on hpux 9.07.
> 
> anyway,
> 
> thank you very much for your help.
> 
> best regards,
> 		Philippe-
> 
> ----- End of forwarded message from Philippe Marcel -----
> 
> -- 

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message