realdreams
Dabbler
- Joined
- Aug 10, 2012
- Messages
- 12
I changed web interface default port, htttps only
Now if I hit example.com:80, it redirects me to https://ip:https_port
How can I avoid this behavior? It's a security problem (defeat the purpose of changing port) and causes certificate error (common name=FQDN, not IP)
Thanks
edit:
in /usr/local/etc/nginx/nginx.conf
server {
listen 0.0.0.0:80;
server_name localhost;
rewrite ^ https://$server_addr:12345$request_uri? permanent;
}
How can I remove this and make it sticky?
Now if I hit example.com:80, it redirects me to https://ip:https_port
How can I avoid this behavior? It's a security problem (defeat the purpose of changing port) and causes certificate error (common name=FQDN, not IP)
Thanks
edit:
in /usr/local/etc/nginx/nginx.conf
server {
listen 0.0.0.0:80;
server_name localhost;
rewrite ^ https://$server_addr:12345$request_uri? permanent;
}
How can I remove this and make it sticky?