summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-24 16:56:58 +0000
committerErmal <eri@pfsense.org>2010-05-24 16:57:27 +0000
commitf37caa93fe3382766f21e3c038e771664f9fbb1e (patch)
treecc17d8bf81e4b7052bf5e5ad1363cac480cb199c /usr/local/www/system_advanced_admin.php
parent58fdcb9c79438ced2153ac0af2f9c9b6cda72a00 (diff)
downloadpfsense-f37caa93fe3382766f21e3c038e771664f9fbb1e.zip
pfsense-f37caa93fe3382766f21e3c038e771664f9fbb1e.tar.gz
Add to the System->Advanced an option to disable the redirect from port 80 when on https.
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r--usr/local/www/system_advanced_admin.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index 2dd53cb..8a6eae0 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -52,6 +52,7 @@ require_once("shaper.inc");
$pconfig['webguiproto'] = $config['system']['webgui']['protocol'];
$pconfig['webguiport'] = $config['system']['webgui']['port'];
$pconfig['ssl-certref'] = $config['system']['webgui']['ssl-certref'];
+$pconfig['disablehttpredirect'] = isset($config['system']['disablehttpredirect']);
$pconfig['disableconsolemenu'] = isset($config['system']['disableconsolemenu']);
$pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
$pconfig['enableserial'] = $config['system']['enableserial'];
@@ -99,6 +100,14 @@ if ($_POST) {
if (update_if_changed("webgui certificate", $config['system']['webgui']['ssl-certref'], $_POST['ssl-certref']))
$restart_webgui = true;
+ if ($_POST['disablehttpredirect'] == "yes") {
+ $config['system']['disablehttpredirect'] = true;
+ $restart_webgui = true;
+ } else {
+ unset($config['system']['disablehttpredirect']);
+ $restart_webgui = true;
+ }
+
if($_POST['disableconsolemenu'] == "yes") {
$config['system']['disableconsolemenu'] = true;
auto_login();
@@ -274,6 +283,18 @@ function prot_change() {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("WebGUI redirect"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="disablehttpredirect" type="checkbox" id="disablehttpredirect" value="yes" <?php if ($pconfig['disablehttpredirect']) echo "checked"; ?> />
+ <strong><?=gettext("Disable webConfigurator redirect rule"); ?></strong>
+ <br/>
+ <?php gettext("When this is unchecked, access to the webConfigurator " .
+ "is always permitted even on port 80, regardless of the listening port configured." .
+ "Check this box to disable this automatically added redirect rule. ");
+ ?>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Anti-lockout"); ?></td>
<td width="78%" class="vtable">
<?php
OpenPOWER on IntegriCloud