File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / lighttpd / conf.d / mysql_vhost.conf
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Jan 5 23:14:25 2014 UTC (10 years, 8 months ago) by misho
Branches: MAIN
CVS tags: elwix2_3, elwix2_2, HEAD, ELWIX2_2p0, ELWIX2_1
version 2.1

    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>