You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Stephenson <PS...@ficgroup.com> on 2001/12/14 22:40:03 UTC

Another question

Is there a way to tell virtual hosts to listen to a certain ip only and still use the name in the <VirtualHost www.domainname.com>?

Re: Another question

Posted by Lewis Watson <li...@visionsix.com>.
You could do ip address based virtual hosts

<VirtualHost 123.123.123.123>
  DocumentRoot /www/foo/html
  ServerName www.foo.com
  ServerAdmin admin@foo.com
  ErrorLog www/foo/logs/error_log
</VirtualHost>

Regards.
Lewis
  ----- Original Message ----- 
  From: Paul Stephenson 
  To: users@httpd.apache.org 
  Sent: Friday, December 14, 2001 3:40 PM
  Subject: Another question


  Is there a way to tell virtual hosts to listen to a certain ip only and still use the name in the <VirtualHost www.domainname.com>?