Apache Virtual Server

From: nosy (narrischesschwammerl_at_yahoo.de)
Date: 10/28/03


Date: Tue, 28 Oct 2003 14:48:45 GMT

Hi,
I tried to setup two virtual servers in our LAN (name based). I'm
running Apache 1.3
 Everything seemed very easy but the configuration won't find the
second domain.

I simply added two direcives in httpd.conf like:

NameVirtualHost *

<VirtualHost *>
        ServerName ...Domain1....
        DocumentRoot ...
             ServerAdmin ...
        ErrorLog ...
        CustomLog ...
</VirtualHost>

<VirtualHost *>
        ServerName ...Domain2....
        DocumentRoot ...
             ServerAdmin ...
        ErrorLog ...
        CustomLog ...
</VirtualHost>

as I was told that the original domain also has to be setup as a
virtual host, as well as the 2nd.

Thats all I did, then I started httpd -S and it showed the virtual
host entries. Then I did restart apche in init.d. It went up
immediately and worked as before BUT the 2nd domain is NOT
recognised. It seems I have forgotten something else. Any idea what
has to be doen on top of adding those directives?

Thank you



Relevant Pages

  • Re: Adding users...
    ... > root, you will have to setup an Alias for each user, or to define ... > another virtual host. ...
    (freebsd-questions)
  • is there anyway to do this with SBS
    ... Is there anyway I can setup a virtual host in IIS to a sub domain ...
    (microsoft.public.windows.server.sbs)
  • Apache 101 help !
    ... 1/ Setup the basic web server myhost.mydomain.com ... If I use default DocumentRoot /var/www/html for question #1, ... Question #1 does not asked to use the Virtual host. ...
    (comp.infosystems.www.servers.unix)
  • Re: problem with Apache 2.0.50 on FC1
    ... > ...or more likely it's an issue with my configuration. ... > setup name-based virtual hosts. ... In this file you configure the two virtual domains in the following way: ... # You may use the command line option '-S' to verify your virtual host ...
    (Fedora)
  • Re: Location of BIND
    ... I start by installing the port with a PREFIX option that differs ... so it's probably best to avoid that option for this configuration. ... Here are the /etc/rc.conf options to enable this setup on a 4.x machine: ... while since I too have changed my BIND configuration. ...
    (comp.unix.bsd.freebsd.misc)