Deferred dirprotection until 0.9.5, refs #72
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user