Solved reverse proxies to access docker apps (nginx?)

Currently reading
Solved reverse proxies to access docker apps (nginx?)

i tested every sub-domain and they all do the same.
i did add that htaccess file but that doesn't seem to have worked for the default site.

does HSTS require a certain browser capability to work?
 
so as it stand right now this is what is happening

all HTTPS sites load fine
all HTTP sites are loading the default web station home page. they are all being forwarded to that rather than to their HTTPS equivalent.

i don't want a port 80 HTTP to fail though, i want it to the redirected to the HTTPS equivalent.
 
just tested this on a completely different computer and HTTP is not being forward to HTTPS.

all HTTPS sites load fine
all HTTP sites are loading the default web station home page. they are all being forwarded to that rather than to their HTTPS equivalent.
 
i didn't, but have i now enabled it and the end result is the same.

HTTPS sites load correctly.
HTTP sites are loading the default web station website (ie they are not even loading HTTP version of the correct site).
 
It really sounds like there's a misconfiguration under the hood within the rewriting rules of DSM. You can open a support ticket with Synology and they will probably ask for remote access to the NAS to investigate it.

If you disable HSTS for one/all application URLs does it still go to Web Station home page?
 
i've just tested with HSTS enabled and disabled and it still gives the same end result.
HTTPS loads fine, HTTP loads the default web station site.

this is what the reverse proxy settings look like for the site in question

Capture.JPG
 
just a thought, is the HTTP version routing to default site because there is nor reverse proxy set up for HTTP version of the site i'm trying to access?

would i need to create one for both HTTP and HTTPS?
 
so this one is still an issue for me.
the only browser that auto re-directs to HTTPS seems to be Google Chrome.
every other browser i've tested with lets you load the HTTP version if that's the URL you enter (Old Edge, New Edge, Opera, FIrefox).
 
actually, just tested chrome incognito mode and that also doesn't forward, so i'm guessing that chrome has just cached the fact that the HTTPS forward worked on previous hosting.

so HTTPS-to-HTTP autoforward is not working at all
 
What can I say? From the Internet, I tested Firefox using an undefined subdomain of my domain that point wildcard to my ISP IP. Using http://test.mydomain.com and the NAS does redirect it to https://test.mydomain.com

I run a local DNS server for my home domain and Internet DNS service for outside. Whether resolving from LAN or Internet I get redirected to HTTPS for all my applications and virtual hosts.

Using Safari, mainly, or Firefox.
 
the only difference is you're using apache rather than nginx as the back-end?
what was your step-by-step process ? maybe i've missed something.
 
Last edited:
update - looks like it might be an nginx problem.
just changed the back-end to apache 2.4 and now it's autoredirecting to HTTPS.

the custom 404 error page (missing.html) also didn't work when using nginx, but works in apache.
 
makes you wonder what's wrong with nginx, maybe it's not writing the changes to nginx.conf or something.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question
I have a DS216play running DSM 7.21-69057 update 3. It's web-facing, so it's running as a proxy server. I...
Replies
0
Views
1,080
Hello, Apologies if this is the wrong place to post. It seems like this posts vary in this category so...
Replies
0
Views
1,190
  • Question
sorry for the late reply but if your domain is being proxied by CF and the logs are stating script...
Replies
10
Views
4,288
I m feeling stupid !!! How the hell I have not seen thisS !!! Excuse meEE !!! All works like a charm now !
Replies
10
Views
13,246
A few days ago overnight I lost wireless access from my two laptops to my Synology. My Synology DS411 is...
Replies
0
Views
704
That's the way I currently use. However without using a ssh key but typing in a password.
Replies
7
Views
3,086
  • Question
Aah, that's it. Thank you so much. I had been looking at the three dots at the top right nit the correct...
Replies
4
Views
4,518

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top