Project

General

Profile

Mod evhost » History » Revision 7

Revision 6 (moo, 2007-07-07 15:30) → Revision 7/23 (Anonymous, 2007-12-25 17:17)

[[TracNav(DocsToc)]] 
 
 {{{ 
 #!rst 
 ======================== 
 Enhanced Virtual-Hosting 
 ======================== 

 ------------------ 
 Module: mod_evhost 
 ------------------ 

 .. meta:: 
   :keywords: lighttpd, virtual hosting 
  
 .. contents:: Table of Contents 

 Description 
 =========== 

 mod_evhost builds the document-root based on a pattern which contains 
 wildcards. Those wildcards can represent parts of the submitted hostname 
 

 :: 
  
   %% => % sign 
   %0 => domain name + tld 
   %1 => tld 
   %2 => domain name without tld 
   %3 => subdomain 1 name 
   %4 => subdomain 2 name 

   evhost.path-pattern = "/home/www/servers/%3/pages/" 

 Options 
 ======= 

 evhost.path-pattern  
   pattern with wildcards to be replace to build a documentroot 


 Samples 
 ======= 


 User vhosts 
 ------------ 


 :: 

   $HTTP["host"] =~ "users\.example\.org" { 
       evhost.path-pattern = "/home/%4/public_html/" 
   } 

 http://johndoe.users.example.org/ => /home/johndoe/public_html/ 

 More examples please? 
 }}}