Project

General

Profile

Docs ModSqlVhostCore » History » Revision 5

Revision 4 (Anonymous, 2008-02-18 00:25) → Revision 5/7 (Seph, 2008-10-12 19:46)

h1. [[TracNav(DocsToc)]] 

 <pre> 

 #!rst  

 ============================== 
 The SQL Virtual Host Interface 
 ============================== 

 *Module: mod_sql_vhost_core* -------------------------- 
 Module: mod_sql_vhost_core 
 -------------------------- 

 .. contents:: Table of Contents 


 h2. Description 
 =========== 

 Provides a way to store a virtual hosts document root in an SQL database.  

 *Note* Note 
 Keep in mind that only one vhost module should be active at a time. Don't mix virtual hosting modules. 


 h2. Installation 
 ============ 

 If you want to use mod_sql_vhost_core you have to load it first. Each SQL backend is a module too and has to be loaded 
 after the core-module. 

 <pre> 
  :: 

  server.modules = ( 
    ...,  
    "mod_sql_vhost_core", 
    "mod_mysql_vhost", 
    ... ) 


 Options 
 </pre> ======= 

 h2. Options 

 The core module supports the following options: 

 <pre> 
  :: 

  sql-vhost.backend = "mysql" 
  sql-vhost.debug = 99  
  sql-vhost.db = "lighttpd" 
  sql-vhost.user = "lighttpd" 
  sql-vhost.pass = "secret" 
  sql-vhost.hostname = "localhost" 
  sql-vhost.port = 3306 
  sql-vhost.select-vhost = "SELECT docroot FROM domain_docroot WHERE domain='?';" 
  sql-vhost.cache-ttl = 15 
 </pre>