Monday, 09 February 2026
  3 Replies
  736 Visits
0
Votes
Undo
I am hosting a single website from a server in my closet. It works on a single port forward from my public IP address. I have a domein registered via DynDNS. >This all works fine.

Now I would like to host two websites on that one server. How can I do this? Do I need to tell DynDNS to use different ports for different sites? Can the webserver see what domain is being requested, and serve the correct page dynamically?
3 months ago
·
#494
0
Votes
Undo
Hi,

It really doesn't matter if it's in your closet on a server or at home, if both of your website have a VHOST record in your, and I will assume here Apache, maybe IIS, with a VirtualHost Record you don't have to forward at all to multiple ports, lets assume you have a port :3999 and that was your Apache port.

You then have DynDNS for 2 domains lets just call them "steve.dyndns.org" and "john.dyndns.org" and they goto your IP, and your router does the forwarding work 80 to 3999, all that you need to ensure is your Apache has VirtualHost records for both john and steve's domains, then it will resolve the right page, just like any other server, and all through the same port.

1. Setup Virtualhost records for both subdomains you want to use or domains
2. Point them to their site locations

Now when they resolve to your IP and port, they will find their home.
3 months ago
·
#495
0
Votes
Undo
you can manage your domain redirects on application server level. For example, if you are using Nginx, Apache or LiteSpeed you can easily handle it in configs. Let me know if you need any help or assistance. I will be glad to help you.
3 months ago
·
#496
0
Votes
Undo
Web server can, but (for HTTPS) very old browsers can not.

en.wikipedia.org/wiki/Server_Name_Indication

Server Name Indication (SNI) is an extension
to the Transport Layer Security (TLS) computer
networking protocol by which a client indicates
which hostname it is attempting to connect
to at the start of the handshaking process.
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
© 2026 hostsocial.io