You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dean Gaudet <dg...@arctic.org> on 1997/09/13 08:40:04 UTC

Re: config/953: Migrating from 1.1.3 -> 1.2.1 breaks all my _NON_ virtualhost (ie main server) directives. (fwd)

The following reply was made to PR config/953; it has been noted by GNATS.

From: Dean Gaudet <dg...@arctic.org>
To: apbugs@apache.org
Subject: Re: config/953: Migrating from 1.1.3 -> 1.2.1 breaks all my _NON_ virtualhost (ie main server) directives. (fwd)
Date: Fri, 12 Sep 1997 23:39:15 -0700 (PDT)

 
 
 
 ---------- Forwarded message ----------
 Date: Fri, 1 Aug 1997 07:08:25 -1400 (EST)
 From: jason andrade <ja...@dstc.edu.au>
 To: Dean Gaudet <dg...@arctic.org>
 Subject: Re: config/953: Migrating from 1.1.3 -> 1.2.1 breaks all my _NON_ virtualhost (ie main server) directives.
 
 
 > Are all your hosts ip based, and one of them has the same address as the
 > main server? 
 
 i'm running apache on 2 different machines.
 
 the internal machine has a `physical' ip# of 130.102.176.27, and 
 an `alias' of 130.102.176.26.
 (one normal and one virtualhost)
 
 the external machine has a physical ip# of 130.102.181.9 and aliases
 of 130.102.181.11 and 130.102.181.12
 (one normal and two virtualhosts)
 
 > You can force Apache to disable all the name-based vhost stuff (which
 > sounds like what you want) by putting "ServerName localhost" outside of
 > all the vhosts.  That effectively disables the main server too.
 
 nod.  i'm going to have to do that, if theres no easy fix for this.  yep,
 i've tickled the virtualhost bugs in 1.1.3 before, but somehow managed to
 work around them, to the point it `worked'.
 
 > Otherwise, I need to know what your DNS resolves to for each of the
 > virtualhosts, and for any ServerName directive in the "main server".  If
 > you don't have a ServerName directive, then apache will do a
 > gethostname(), so I need to know what your hostname resolves to. 
 
 here are my forward lookups for the `external' machine.
 
 ;
 shelob          IN      A       130.102.181.9
                 IN      MX      10      piglet.dstc.edu.au.
 www             IN      CNAME   shelob
 ftp             IN      CNAME   shelob
 external        IN      CNAME   shelob
 ;
 webpages        IN      A       130.102.181.11
                 IN      MX      10      piglet.dstc.edu.au.
 ;
 metadata        IN      A       130.102.181.12
                 IN      MX      10      piglet.dstc.edu.au.
 ;
 
 and reverse lookups are:
 
 ;
 9       IN      PTR     shelob.dstc.edu.au.
 11      IN      PTR     webpages.dstc.edu.au.
 12      IN      PTR     metadata.dstc.edu.au.
 ;
 
 
 the httpd.conf for this server is:
 
 #
 ServerType      standalone
 Port            80
 HostnameLookups on
 User            www
 Group           www
 ServerAdmin     webmaster@dstc.edu.au
 ServerRoot      /www/public
 ErrorLog        /var/www/public/logs/error_log
 TransferLog     /var/www/public/logs/access_log
 PidFile         /var/www/public/logs/httpd.pid
 ScoreBoardFile  /var/www/public/logs/apache_status
 ServerName      www.dstc.edu.au
 Timeout         600
 KeepAlive       10
 KeepAliveTimeout 16
 MinSpareServers 8
 MaxSpareServers 12
 StartServers    8
 MaxClients      128
 MaxRequestsPerChild 32
 CacheNegotiatedDocs
 #
 <VirtualHost webpages.dstc.edu.au>
 ServerAdmin     brads@dstc.edu.au
 DocumentRoot    /www/webpages/htdocs/
 ServerName      webpages.dstc.edu.au
 ErrorLog        /var/www/webpages/logs/error_log
 TransferLog     /var/www/webpages/logs/access_log
 ResourceConfig  /www/public/conf/webpages_srm.conf
 </VirtualHost>
 #
 <VirtualHost metadata.dstc.edu.au>
 ServerAdmin     webmaster@metadata.net
 DocumentRoot    /www/metadata/htdocs/
 ServerName      metadata.net
 ErrorLog        /var/www/metadata/logs/error_log
 TransferLog     /var/www/metadata/logs/access_log
 ResourceConfig  /www/public/conf/metadata_srm.conf
 </VirtualHost>
 #
 
 cheers,
 
 -jason
 -- 
  jason andrade       dstc pty ltd               jason@dstc.edu.au
  senior sysadmin     level 7, gehrmann labs     i just wanna be         
  phn +61-7-33654307  university of queensland   bluemisty
  fax +61-7-33654311  queensland 4072 australia  and barefooted