Skip to content
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

How to change default Proxy Host port from 80 to something else #182

Open
MuadDibIII opened this issue Aug 1, 2024 · 0 comments
Open

How to change default Proxy Host port from 80 to something else #182

MuadDibIII opened this issue Aug 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MuadDibIII
Copy link

Hello,

First of all, really thanks for the effort, I just installed NGINX on my Proxmox LXC container and I've been experimenting in order to replace my Synology's Reverse Proxy with this one.

One thing that I'm struggling to do, is to change the default Proxy Hosts port from 80 to something else.

For example, actually, when I'm setting a new host, I have to enter a domain name (let's say sub.domain.com), and it is forwarded to my actual server IP:port (let's say 10.1.0.19:8080).

This way if I enter on my browser the URL https://sub.domain.com, I reach http://10.1.0.19:8080 (with a valid Let's Encrypt certificate).

What if I don't want to use the 80 port, I want to use port 980 https://sub.domain.com:980?

Is there anyway to change this setting? I've searched and I found some tutorials that explain that I have to change de nginx.conf file, the sites-enabled.conf file, ..., witch I partially did, but the folder structure of your script seems to be a little different from all tutorials that I found.

For example, I never found the sites-enabled.conf file, and even the nginx.conf is not exactly the same, I think that I had to update another file because the listen setting was not in the nginx.conf one. And after all my changes nothing really changes...

Anyway, I hope that you can understand my question, I'm not English native.

Thanks in advance for your help,

Best regards,
Marc

@MuadDibIII MuadDibIII added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants