Bug #16000
closed400 Bad Request - The plain HTTP request was sent to HTTPS port - nginx
0%
Description
Dear pfSense team,
Default local machine:
- http://pfsense/
- https://pfsense/
- https://pfsense/system_advanced_admin.php
I have discovered a bug, when we try connect with 443 port in HTTP, http://pfsense:443/ we obtain:
400 Bad Request
The plain HTTP request was sent to HTTPS port
nginx
In more, I have discovered a bug, when we change the HTTPS port of the WebAdmin (default 443 to another port, example 444), to have:
https://pfsense:444/ we obtain at the same time http://pfsense:444/ with:
400 Bad Request
The plain HTTP request was sent to HTTPS port
nginx
FROM EXTERNAL
If the pfSense has a new WAN rules, for example for 444 port:
- https://externalpfsense:444/
- https://externalpfsense:444/firewall_rules.php?if=wan
The same problem exists if WAN have rules to:
- http://externalpfsense:444/
In more if we enable this option, the problem is always here: "WebGUI redirect":
Disable webConfigurator redirect rule
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.
Can you solve it?
Thanks in advance.