I have a Synology NAS running an Apache web server with several Virtual Hosts. Currently, each vhost is associated with a different port, and my router is pointing on them individually. I also have a static IP address.
Now, let's say I want to buy a couple of domain names, and make them point on my vhosts.
What I plan to do is:
- On my domain names, point each A field on my IP address
- On my router, forward WAN port 80 to NAS port 8099 (or anything else, to not interfere with the others ports used by the NAS)
- Change my vhosts configuration to listen the 8099 port and redirect the user to the right website with the domain name.
- Same idea for the WAN port 443.
My question is: I am planning to do it right? And assuming the websites are correctly secured (I want to make public 2 websites: 1 Wordpress (obviously up to date) and 1 static (pages generated my PHP, no user interaction or upload)). Are there any security issues (eg. a risk of accessing private files on the NAS or accessing other services on other ports than 8099)?