httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Oakley <>
Subject [users@httpd] Apache VirtualHosts problem
Date Fri, 29 Aug 2003 00:47:47 GMT
I have a server which has two copies of apache running with two different 
ports and conf files.

The first one will catch two domain names on the same IP. and

The second is for running on port 81 using apache-ssl.

We have a customer who wishes to use the secure site, but doesn't want to 
put ":81/aaptfiletransfer" in the URL.  I've set up the first apache conf 
file with a virtualhost which has a Redirect, so if they go to:
the page they get will be:

The VirtualHost directive is being read by the httpd as proven here:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
                        default server 
                        port 80 namevhost 
                        port 80 namevhost 

At the moment, I've even tried not using a Redirect (or Rewrite which I've 
also tried), but instead just have a separate DocumentRoot for the second 
hostname. Whether I use the Redirect or use the DocumentRoot, it's still 
only using the first (default) virtual host.
NameVirtualHost *

<VirtualHost *>
         DocumentRoot "/pkgs/apache_1.3.22-sol8/htdocs"

<VirtualHost *>
#       Redirect permanent /
         DocumentRoot "/export/securewww/"
Whichever address you to to, either or it still serves the page from the 
/pkgs/apache_1.3.22-sol8/htdocs DocumentRoot.



Jason Oakley +612 82821434
   Open and Intel Systems
   Systems Administrator

  Add a dab of lavender to milk
    Leave town with an orange
and pretend you are laughing at it 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message