I'm configurintg virtual hosting on lighttpd. For some reason only 1 virtual hosting work and the other doesn't. This is the configuration:
#this doesn't work (just a html file)
$HTTP["host"] =~ "^www\.website\.com$" {
server.document-root = "/var/www/astudio/sites/websiteTemp"
}
#this works (Drupal installation)
$HTTP["host"] =~ "beta\.website\.com" {
server.document-root = "/var/www/astudio/sites/website"
server.errorlog = "/var/log/lighttpd/danydiop/error.log"
accesslog.filename = "/var/log/lighttpd/danydiop/access.log"
include_shell "./drupal-lua-conf.sh danydiop"
url.access-deny += ( "~", ".inc", ".engine", ".install", ".info",
".module", ".sh", "sql", ".theme",
".tpl.php", ".xtmpl", "Entries",
"Repository", "Root" )
# "Fix" for Drupal SA-2006-006, requires lighttpd 1.4.13 or above
# Only serve .php files of the drupal base directory
$HTTP["url"] =~ "^/.*/.*\.php$" {
fastcgi.server = ()
url.access-deny = ("")
}
magnet.attract-physical-path-to = ("/etc/lighttpd/drupal-lua-scripts/p-.lua")
}
what am I missing ? When it doesn't work, I just get the page "It Works!" instead of the folder content