File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / config / conf.d / mysql_vhost.conf
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 9 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

#######################################################################
##
##  Virtual hosting with MySQL 
## ----------------------------
##
## See http://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='?'"

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>