-
Notifications
You must be signed in to change notification settings - Fork 3.1k
When Redirecting to Folder Path, Force SSL Setting is Ignored #1028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can confirm that I am also able to access my proxy host using port 80 in a scenario like this even when |
I think this is an old issue, I read about it on github some times ago. There is currently a workaround available you can add this line to the "custom location".
I think #1017 will resolve this problem. |
Sorry, English is not my native language. nginx is listening at port 80 and 443. Even if you’re routing to an internal site using SSL, you can use every port you like. So you have to setup site something to listen for example at port 8000 and site different at port 8001 Then the setup in npm is custom path /something and the second /different and not only / (may be you need the full path i.e /var/www/something/) example
Last Edit :) There might be another situation like my. I’m using by security reasons a stand alone proxy server (a raspberry 4 is still oversized) and my sites running at different machines. In that case you don’t need a custom path at all. Only IP:Port :-) Absolute last Edit: I don’t know what your sites are doing, but have a look at the config files. |
I can confirm that the workaround provided by @N1c093 works for me. However, since the workaround shouldn't be necessary and this issue can create a security vulnerability, I think the ticket should remain "open" until the Force SSL toggle works as intended in this scenario. |
@dgsharpe In my opinion it is not an issue. It’s a wrong setup and misunderstanding. |
I think I understand the point you're making, @3Dscrewer , but this is a "human factors" issue if nothing else. Most users will expect that the "Force SSL" setting will force SSL unconditionally in all scenarios. If it doesn't, that's unexpected and frustrating. Unexpected and unintuitive behavior is as much a bug as anything else. The setting should either be made to work in all scenarios, or the UI should change so that users won't be surprised. For example, there could be a link to an explanation of the toggle's actual capabilities, or, if the proxy host is configured as I described above, the toggle could be grayed out. There are any number of possible solutions, but the bottom line is that for this particular scenario, the toggle is not functioning as most users would expect and therefore something should change. |
Issue is now considered stale. If you want to keep it open, please comment 👍 |
Issue was closed due to inactivity. |
Uh oh!
There was an error while loading. Please reload this page.
Background
I have an existing web server which serves applications at folder paths - for example, http://192.168.1.105/something, http://192.168.1.105/differentthing . I would like to use Nginx Proxy Manager to point a subdomain directly to these paths, i.e. https://something.mywebsite.com --> http://192.168.1.105/something (without having to go to something.mywebsite.com/something). The ability to do this was discussed and implemented on issue #104 , with these steps provided by @jc21 :
The Problem
When you actually do this, something.mywebsite.com will respond on http (port 80), even if you configure an SSL certificate and enable the "Force SSL" setting. It should instead respect the setting, and not respond on unencrypted http when the setting is enabled.
Reproduction
Simply set up a configuration like the one described above, and enable the Force SSL setting (screenshots also provided below). This bug was also reported in #104 by @gmag11 and @meichthys, so I'm confident that it isn't just me.
Screenshots (actual domain and path redacted, and even though you can't see it in the screenshot, I promise you I didn't forget the trailing slash in the Forward Hostname / IP box)



The text was updated successfully, but these errors were encountered: