TLS for default site (congratulations page) #4518
Replies: 2 comments
-
Here's how I got what I wanted (without learning too much about nginx configuration 😄). I'd be interested to hear if there is some built-in way of doing this. I also wouldn't mind hearing if there were improvements that could be made to the config file pasted below. I should first clarify that what I wanted is more specific than the question I asked above. What I really wanted was to show a custom HTML page when users go to home.example.org (only with an actual domain name, not example.org). The custom HTML page just shows a simple menu of the available proxied services. I hand-crafted the HTML based on detailed suggestions from Google Gemini. My solution was to copy one of the generated numbered proxy config files from FWIW, here's the result, which works the way I'd hoped:
|
Beta Was this translation helpful? Give feedback.
-
I just came across this technique (see link). I probably would have done that if I had discovered it yesterday. |
Beta Was this translation helpful? Give feedback.
-
(I know a fair bit about HTTP and TLS, but I'm a novice at nginx. This tool is so great at preventing me from needing to become an nginx expert that I want you to solve all my problems for me. 😄)
I set up my NPM on my home network pretty much according to the documentation. I'm using a wildcard Let's Encrypt certificate with DNS challenge. That works great for all my proxied sites. I have a half dozen, all recognized by server name.
When I try an unrecognized name to get the default site (congratulations page), it works OK in a Chrome browser because (I think) Chrome tries HTTPS first and then falls back to HTTP (with the usual browser safety warning). If I try the same thing with curl, directly trying HTTPS, I get this (the only change I made was to swap "example.org" for my actual domain):
So, my question is ... is there a way to get a TLS connection to that default site? Of course, I'm sure there is such a way in nginx ... I mean, is there a way built into NPM that I just haven't figured out?
Beta Was this translation helpful? Give feedback.
All reactions