summaryrefslogtreecommitdiff
path: root/doc/config/conf.d/mysql_vhost.conf
blob: cb63083d675a2baa1a100b405ad3a3ef46205d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#######################################################################
##
##  Virtual hosting with MySQL 
## ----------------------------
##
## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModMySQLVhost
##
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='?'"

##
#######################################################################