Intro to Apache - ApacheCon
Name-based virtual hosts
  • Many hosts on one IP address

  • SSL does not work (Although this is being worked on) because the connection is established before the URL is requested.

  • Almost the same configuration

    
     NameVirtualHost *:80
    
      
    
     <VirtualHost *:80>
       ServerName conferences.rcbowen.com
       ServerAlias conferences talks
       DocumentRoot /home/rbowen/devel/docs/conferences/presentations
     </VirtualHost>
    
      
    
     <VirtualHost *:80>
       ServerName unix.rcbowen.com
       ServerAlias unix unixcd unixdocs
       DocumentRoot /usr/local/apache/vhosts/unix
     </VirtualHost>
    
      

Index
Back to IP-based virtual hosts
Forward to mod_vhost_alias

ApacheCon : Intro to Apache - Slide #73 of 139