diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
commit | 59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch) | |
tree | 10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/mysql_vhost.conf | |
parent | f06e297cd175cca39745f6d1970225ae88aa68f1 (diff) |
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/mysql_vhost.conf')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/mysql_vhost.conf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/mysql_vhost.conf b/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/mysql_vhost.conf new file mode 100644 index 000000000..cb63083d6 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/mysql_vhost.conf @@ -0,0 +1,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='?'" + +## +####################################################################### |