Deferred dirprotection until 0.9.5, refs #72

This commit is contained in:
Florian Aders (EleRas)
2010-03-29 09:17:58 +00:00
parent 2b2d44166d
commit 7bea15a7a9
2 changed files with 2 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ class apache
/** /**
* dirprotection, see #72 * dirprotection, see #72
*/ * @TODO deferred until 0.9.5, needs more testing
$this->virtualhosts_data[$vhosts_filename].= "\t<Directory \"'.$mypath.'(images|packages|templates)\">\n"; $this->virtualhosts_data[$vhosts_filename].= "\t<Directory \"'.$mypath.'(images|packages|templates)\">\n";
$this->virtualhosts_data[$vhosts_filename].= "\t\tAllow from all\n"; $this->virtualhosts_data[$vhosts_filename].= "\t\tAllow from all\n";
$this->virtualhosts_data[$vhosts_filename].= "\t\tOptions -Indexes\n"; $this->virtualhosts_data[$vhosts_filename].= "\t\tOptions -Indexes\n";
@@ -144,7 +144,6 @@ class apache
$this->virtualhosts_data[$vhosts_filename].= "\t\tOrder Deny,Allow\n"; $this->virtualhosts_data[$vhosts_filename].= "\t\tOrder Deny,Allow\n";
$this->virtualhosts_data[$vhosts_filename].= "\t\tDeny from All\n"; $this->virtualhosts_data[$vhosts_filename].= "\t\tDeny from All\n";
$this->virtualhosts_data[$vhosts_filename].= "\t</Directory>\n"; $this->virtualhosts_data[$vhosts_filename].= "\t</Directory>\n";
/**
* end of dirprotection * end of dirprotection
*/ */

View File

@@ -112,7 +112,7 @@ class lighttpd
/** /**
* dirprotection, see #72 * dirprotection, see #72
* @TODO use better regex for this * @TODO use better regex for this, deferred until 0.9.5
* *
$this->lighttpd_data[$vhost_filename].= ' $HTTP["url"] =~ "^/(.+)\/(.+)\.php" {' . "\n"; $this->lighttpd_data[$vhost_filename].= ' $HTTP["url"] =~ "^/(.+)\/(.+)\.php" {' . "\n";
$this->lighttpd_data[$vhost_filename].= ' url.access-deny = ("")' . "\n"; $this->lighttpd_data[$vhost_filename].= ' url.access-deny = ("")' . "\n";