Sean C. Sheridan on 28 Sep 2007 15:39:26 -0000 |
Unfortunately that is correct. I'd tried this approach and it did not work as expected, though I retried after Jonathan's post. > (if I'm not mistaken) Apache will resolve that name to an IP address, > effectively making the 2 entries the same. That is what I am seeing. The only way to make this work is to pick an alternate port for the non-named server. Here's what finally worked: Set up a new listener in the httpd.conf on port 81 then: NameVirtualHost 123.123.123.123:81 <VirtualHost 123.123.123.123:81> ServerAdmin webadmin@campusparty.com DocumentRoot /var/www/html ServerName valuereturnedbyhostnamebutnotfullurl ErrorLog /var/log/httpd/error_log CustomLog /var/log/httpd/access_log combined </VirtualHost> NameVirtualHost 123.123.123.123 <VirtualHost 123.123.123.123> ServerAdmin webadmin@campusparty.com DocumentRoot /home/joe/public_html ServerName joe.campusparty.com ErrorLog /var/log/httpd/joe_Error_log CustomLog /var/log/httpd/joe_Access_log combined </VirtualHost> Thanks everybody! Sean C. Sheridan scs@CampusClients.com Campus Party, Inc. 444 North Third St. Philadelphia, PA 19123 (215) 320-1810, xtn 117 (215) 320-1814 fax http://www.CampusClients.com http://www.CampusParty.com ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|