Port forwarding Port forwarding

Argomento: Port forwarding

Post Port forwarding
di CountOmega su domenica 23 giugno 2019

Dear Sir or Madam,
I've set up an server using your Dynamic DNS service. As another server is already in the same network on ports 80 and 443, I've wondered if a port redirect to different ones is possible. I know about the web redirect funktion, but as far as I know, I could only do an HTTP redirect. I would love to run HTTPS as well.

Thanks in advance

Yours sincerely

Matthias Geiger

Rispondi con citazione | Segnalare
Post Re: Port forwarding
di donfink su martedì 25 giugno 2019

CountOmega wrote:Dear Sir or Madam,
I've set up an server using your Dynamic DNS service. As another server is already in the same network on ports 80 and 443, I've wondered if a port redirect to different ones is possible. I know about the web redirect funktion, but as far as I know, I could only do an HTTP redirect. I would love to run HTTPS as well.

Thanks in advance

Yours sincerely

Matthias Geiger
I see that no one has answered this yet so I'll give it a whirl.
If you're running several sites on a home server, you don't need to have any more ports opened other than 80 and 443. What happens is that you configure what's called "Virtual Hosts" inside your Web server. When the web server sees a request for port 80 routed to it from the router, it compares the request with its list of Virtual Hosts and then knows which site to rout it to.

If you're using ubuntu linux, the configuration files for the virtual hosts are located in /etc/apache2/sites-available. If you're running Windows or Mac, I'm not sure where the config files are, but it shouldn't be hard to figure it out.

So to recap, if you are concerned that you need more than ports 80 and 443 open in order to serve multiple web sites from your server, it's all handled from the web server using Virtual Hosts. And I'm also assuming that you're using Apache for the web server, but I'm sure the others would be the same.

Rispondi con citazione | Segnalare
giovedì 19 dicembre 2024 12:25
Loading...