Project

General

Profile

Actions

Bug #268

closed

Segmentation Fault when no config is specified

Added by Anonymous over 16 years ago. Updated almost 15 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_mysql_vhost
Target version:
-
ASK QUESTIONS IN Forums:

Description

This bug occurs when the mysql_vhost module is loaded and no config for it is specified. This happens when the config is held in a conditional section of the .conf. e.g. you only want to use mysql vhosts for one domain. If you did:


$HTTP["host"] =~ "domain1\.com$" {
  server.document-root = "/www/domain1.com/" 
  mysql-vhost.db             = "db" 
  mysql-vhost.user           = "user" 
  mysql-vhost.pass           = "pass" 
  mysql-vhost.sock           = "/var/lib/lighttpd/mysql.sock" 
  mysql-vhost.sql            = "SELECT docroot FROM table WHERE domain='?'" 
}
$HTTP["host"] =~ "domain2\.com$" {
  server.document-root = "/www/domain2.com/" 
}

if any subdomain on domain1.com is accessed the docroot will be looked up and if not found will default to "/www/domain1.com/" which is excatly as it should be
if domain2.com is accessed lighttpd will segfault presumably because no mysql config is specified (not good).

-- Connorhd

Actions #1

Updated by jan over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in r722

Actions

Also available in: Atom