version 1.1, 2013/10/14 15:19:38
|
version 1.2, 2014/01/05 23:14:25
|
Line 0
|
Line 1
|
|
####################################################################### |
|
## |
|
## Virtual hosting with MySQL |
|
## ---------------------------- |
|
## |
|
## http://www.lighttpd.net/documentation/mysqlvhost.html |
|
## |
|
server.modules += ( "mod_mysql_vhost" ) |
|
|
|
## |
|
## Either set the the socket or host (and port) |
|
## |
|
## Local path to the mysql socket |
|
## |
|
#mysql-vhost.sock = "/var/lib/mysql/mysql.sock" |
|
|
|
## |
|
## Host of the MySQL server. |
|
## |
|
#mysql-vhost.hostname = "localhost" |
|
|
|
## |
|
## Optional: port to use. |
|
## |
|
#mysql-vhost.port = 3306 |
|
|
|
## |
|
## Name of the database |
|
## |
|
mysql-vhost.db = "lighttpd" |
|
|
|
## |
|
## SQL User/Password for the connection |
|
## |
|
mysql-vhost.user = "lighttpd" |
|
mysql-vhost.pass = "secret" |
|
|
|
## |
|
## The query to get the needed informations from the database. |
|
## |
|
## It doesnt matter how you name the fields the first field is always used |
|
## as the document root. |
|
## |
|
mysql-vhost.sql = "SELECT docroot FROM domains WHERE domain='?'" |
|
|
|
## |
|
####################################################################### |