Annotation of embedaddon/lighttpd/doc/config/conf.d/mysql_vhost.conf, revision 1.1
1.1 ! misho 1: #######################################################################
! 2: ##
! 3: ## Virtual hosting with MySQL
! 4: ## ----------------------------
! 5: ##
! 6: ## http://www.lighttpd.net/documentation/mysqlvhost.html
! 7: ##
! 8: server.modules += ( "mod_mysql_vhost" )
! 9:
! 10: ##
! 11: ## Either set the the socket or host (and port)
! 12: ##
! 13: ## Local path to the mysql socket
! 14: ##
! 15: #mysql-vhost.sock = "/var/lib/mysql/mysql.sock"
! 16:
! 17: ##
! 18: ## Host of the MySQL server.
! 19: ##
! 20: #mysql-vhost.hostname = "localhost"
! 21:
! 22: ##
! 23: ## Optional: port to use.
! 24: ##
! 25: #mysql-vhost.port = 3306
! 26:
! 27: ##
! 28: ## Name of the database
! 29: ##
! 30: mysql-vhost.db = "lighttpd"
! 31:
! 32: ##
! 33: ## SQL User/Password for the connection
! 34: ##
! 35: mysql-vhost.user = "lighttpd"
! 36: mysql-vhost.pass = "secret"
! 37:
! 38: ##
! 39: ## The query to get the needed informations from the database.
! 40: ##
! 41: ## It doesnt matter how you name the fields the first field is always used
! 42: ## as the document root.
! 43: ##
! 44: mysql-vhost.sql = "SELECT docroot FROM domains WHERE domain='?'"
! 45:
! 46: ##
! 47: #######################################################################
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>