I have 2 server that’s located in the same LAN network.
But I only have one network and one mikrotik router.
I need to access both server from outside (internet) with something like nginx in Linux, eg:
And its not best to put reverse proxy in a router. Its not an all-in-one box, its a router.
If you have control over both servers (nginx or apache) set one as the primary, and create a virtualhost for the other and reverse proxy from server 1 to server 2, so 80,443 can be forwarded just to server 1 and both will work.
My network I run different apps on different VM’s - and I run a VM just for reverse proxy with all my sites for my NAT to punch through to.