mysql_vhost.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ## Either set the the socket or host (and port)
  11. ##
  12. ## Local path to the mysql socket
  13. ##
  14. #mysql-vhost.sock = "/var/lib/mysql/mysql.sock"
  15. ##
  16. ## Host of the MySQL server.
  17. ##
  18. #mysql-vhost.hostname = "localhost"
  19. ##
  20. ## Optional: port to use.
  21. ##
  22. #mysql-vhost.port = 3306
  23. ##
  24. ## Name of the database
  25. ##
  26. mysql-vhost.db = "lighttpd"
  27. ##
  28. ## SQL User/Password for the connection
  29. ##
  30. mysql-vhost.user = "lighttpd"
  31. mysql-vhost.pass = "secret"
  32. ##
  33. ## The query to get the needed informations from the database.
  34. ##
  35. ## It doesnt matter how you name the fields the first field is always used
  36. ## as the document root.
  37. ##
  38. mysql-vhost.sql = "SELECT docroot FROM domains WHERE domain='?'"
  39. ##
  40. #######################################################################