httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "29djeo" <>
Subject Re: [users@httpd] name-based virtual hosting with DNS web forwarding
Date Fri, 09 Jan 2004 00:21:48 GMT
The solution to this problem was:

1) you can't have both domains point to the same ip and port so I changed the web forwarding
on my dns manager so that --> -->

2) set up httpd.conf such that 

Listen 8081
Listen 8082

NameVIrtualHost *:8081
NameVirtualHost *.8082

<VirtualHost *:8081>
yada yada yada

<VirtualHost *:8082>
yada yada yada


   -------Original Message-------
   > From: 29djeo <>
   > Subject: [users@httpd] name-based virtual hosting with DNS web forwarding
   > Sent: 08 Jan 2004 19:00:41
   >  I am trying to serve two domains, mydomain1 and mydomain2, on a single machine by
running an instance of apache and two instances of tomcat with mod_jk in between.
   >  I've got things set up so that when I point a browser at
or I always get the DocumentRoot defined for the first VirtualHost
entry in httpd.conf (mydomain1).
   >  My DNS manager uses web-forwarding so that requests for either domain get sent to
the same ipaddress:port  so that requests for and
both get mapped to
   >  I suspect that http requests to both domains are identical and that's why I'm getting
the "default" virtual host's DocumentRoot (mydomain1).
   >  How do you get around this problem?
   >  -or-
   >  How do I get the apache logger to dump the http requests so I can look at the http
header and request parameters to confirm?
   >  thx,
   >  Mike
   -------Original Message-------

View raw message