- corrected regex for lighttpd - apache needs fixing too, refs #72

This commit is contained in:
Michael Kaufmann (d00p)
2010-03-19 20:29:02 +00:00
parent 660bede9c5
commit ccf40fc89b

View File

@@ -113,7 +113,7 @@ class lighttpd
/**
* dirprotection, see #72
*/
$this->lighttpd_data[$vhost_filename].= ' $HTTP["url"] =~ "^/(actions|install|lib|lng|scripts|temp)" {' . "\n";
$this->lighttpd_data[$vhost_filename].= ' $HTTP["url"] =~ "^/(.+)\/(.+)\.php" {' . "\n";
$this->lighttpd_data[$vhost_filename].= ' url.access-deny = ("")' . "\n";
$this->lighttpd_data[$vhost_filename].= ' }' . "\n";