Intro to Apache - ApacheCon
mod_vhost_alias
  • Large number of vhosts, exactly the same configuration

    
     VirtualDocumentRoot  /usr/local/apache/vhosts/%0/htdocs
     VirtualScriptAlias   /usr/local/apache/vhosts/%0/cgi-bin
    
      

  • New virtual hosts without changing configuration or restarting server.

  • Can make directory structure arbitrarily complex

    
      VirtualDocumentRoot /usr/local/apache/vhosts/%2.1/%2.2/%2.3+/htdocs
    
      

    http://apache13/mod/mod_vhost_alias.html
Index
Back to Name-based virtual hosts
Forward to port-based

ApacheCon : Intro to Apache - Slide #74 of 139