httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Min-Hua Luo <minhua_...@yahoo.com>
Subject [users@httpd] virtual host problem
Date Wed, 18 Jul 2007 20:31:24 GMT
Hi,
   
  I have two virtual hosts defined in httpd.conf
   
  Listen 12311
  NameVirtualHost *:12311
<VirtualHost *:12311>
    ServerName twpdev.ora.fda.gov
    DocumentRoot /u07/twpdev
      ServerAdmin james.luo@fda.hhs.gov
    ErrorLog /u07/twpdev_error_log        
  </VirtualHost>

   
   
  Listen 12312
  NameVirtualHost *:12312
<VirtualHost *:12312>
    ServerName oasisdev.ora.fda.gov
    DocumentRoot /u07/oasis
      ServerAdmin james.luo@fda.hhs.gov
   ErrorLog /u07/oasis_error_log        
  </VirtualHost>

   
  I can access the first site using http://twpdev.ora.fda.gov:12311. However, I found I can
also access the same page using http://oasisdev.ora.fda.gov:12311 because both "twpdev.ora.fda.gov"
and "oasisdev.ora.fda.gov" resolve to the same IP.
   
  This is NOT what I want. So my question is:
   
  How can I configure httpd.conf so port 12311 only respond to HTTP requests that address
to "twpdev.ora.fda.gov" instead of any hostnames that point to the same IP address? Thank
you very much.
   
   

       
---------------------------------
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.
Mime
View raw message