Intro to Apache - ApacheCon
IP-based virtual hosts
  • Unique IP address for each host

  • SSL works only under this setup

  • As many hosts as you have IP addresses

    
     <VirtualHost 192.123.321.5>
       ServerName www.boxofclue.com
       DocumentRoot /usr/local/apache/vhosts/boxofclue/htdocs/
       ScriptAlias /cgi-bin/ /usr/local/apache/vhosts/boxofclue/cgi-bin/
     </VirtualHost>
    
      

  • Anything not specified is inherited from the main config file.

Index
Back to Virtual hosts
Forward to Name-based virtual hosts

ApacheCon : Intro to Apache - Slide #72 of 139