From 04d3a9f630b3acff867560a99025383ddf02da83 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Tue, 12 Nov 2013 16:34:36 -0200 Subject: apache-modsecurity-dev - bump version fix typos on status page feature --- config/apache_mod_security-dev/apache.template | 8 ++++--- .../apache_mod_security.inc | 19 +++------------- config/apache_mod_security-dev/apache_settings.xml | 26 +++++++++++----------- .../apache_mod_security-dev/apache_virtualhost.xml | 10 +++++---- 4 files changed, 27 insertions(+), 36 deletions(-) (limited to 'config/apache_mod_security-dev') diff --git a/config/apache_mod_security-dev/apache.template b/config/apache_mod_security-dev/apache.template index 362e28a4..12a36b69 100644 --- a/config/apache_mod_security-dev/apache.template +++ b/config/apache_mod_security-dev/apache.template @@ -197,8 +197,6 @@ DocumentRoot "{$apache_dir}/www/apache22" Deny from all -{$mod_status} - # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as @@ -506,9 +504,13 @@ AcceptFilter https none # Proxysettings {$mod_proxy} +# Mod status +{$mod_status} + + # Include anything else Include etc/apache22/Includes/*.conf EOF; -?> +?> \ No newline at end of file diff --git a/config/apache_mod_security-dev/apache_mod_security.inc b/config/apache_mod_security-dev/apache_mod_security.inc index 615a7fc4..f21dcbdc 100644 --- a/config/apache_mod_security-dev/apache_mod_security.inc +++ b/config/apache_mod_security-dev/apache_mod_security.inc @@ -548,31 +548,18 @@ EOF; } // Process Status Page $mod_status = ""; - if ($setting('statuspage') == "on") { + if ($settings['statuspage'] == "on") { $mod_status .= << SetHandler server-status Order Deny,Allow Deny from all + EOF; - $mod_status .= "Allow from ".($settings['netaccessstatus'] ? $settings['netaccessstatus'] : "All")."\n"; + $mod_status .= "Allow from ".($settings['netaccessstatus'] ? $settings['netaccessstatus'] : "All")."\n"; $mod_status .= "\n"; } -//** Uncomment to allow adding ip/ports not used by any site proxies -//** Otherwise unused addresses/ports will be automatically deleted from the configuration -// foreach ($configuredaliases as $ams) { -// $local_ip_port = "{$ams['ipaddress']}:{$ams['ipport']}"; -// if(!in_array($local_ip_port, $processed)) { -// // explicit bind if not global ip:port -// if ($local_ip_port != $global_listen) { -// $aliases .= "Listen $local_ip_port\n"; -// // Automatically add this to configuration -// $config['installedpackages']['apachesettings']['config'][0]['row'][] = array('ipaddress' => $ams['ipaddress'], 'ipport' => $ams['ipport']); -// } -// } -// } - // update configuration with actual ip bindings write_config($pkg['addedit_string']); diff --git a/config/apache_mod_security-dev/apache_settings.xml b/config/apache_mod_security-dev/apache_settings.xml index de350cf1..2f089616 100644 --- a/config/apache_mod_security-dev/apache_settings.xml +++ b/config/apache_mod_security-dev/apache_settings.xml @@ -278,23 +278,23 @@ listtopic - Status Page - statuspage - - - - select - - - - - + Status Page + statuspage + + + + select + + + + + Network Access Status Page netaccessstatus - - NOTE: Leave blank define all networks]]> + + NOTE: Leave blank to allow access from any ip.(Not recommended for security reasons)]]> input diff --git a/config/apache_mod_security-dev/apache_virtualhost.xml b/config/apache_mod_security-dev/apache_virtualhost.xml index 7a3737cd..b3653bdf 100644 --- a/config/apache_mod_security-dev/apache_virtualhost.xml +++ b/config/apache_mod_security-dev/apache_virtualhost.xml @@ -303,7 +303,7 @@ sitepath leave blank to use /]]> input - 13 + 12 @@ -332,7 +332,7 @@ backendpath Leave blank to use /]]> input - 13 + 12 @@ -359,7 +359,7 @@ options ex: ttl=60 stickysession='JSESSIONID']]> input - 12 + 11 @@ -399,9 +399,11 @@ custom Paste extra apache config for this virtualhost. This is usefull for rewrite rules for example. textarea - 65 + 90 10 base64 + + -- cgit v1.2.3