Hi all, looked around about this topic, found a lot of articles but all confusing. Appreciate if someone can make it clear. It is about jails with internals IP in which are running different websites(let say WP with each having its own database and own php and own nginx inside reach jails), on a freebsd vps with single public IP and nginx reverse proxy on host.
My question is:
1- What would be the nginx conf for the reverse proxy on host(there is no domain or website on host) to redirect secure and non-secure traffic to jails
2- what would be the nginx conf in each jail to serve local websites with secure traffic
3- what would be the pf conf for the above config
I managed to run only one jail with traffic redirected by pf but when comes in the second jail it doesn't work due to the port-IP unique bind. So we need a reverse proxy.
All the examples found around makes me confused cause they are not clear.
The scheme I want to use is Reverse proxy on host, no domain on host, websites inside jails with local servers each
Thanks for some example of configurations
My question is:
1- What would be the nginx conf for the reverse proxy on host(there is no domain or website on host) to redirect secure and non-secure traffic to jails
2- what would be the nginx conf in each jail to serve local websites with secure traffic
3- what would be the pf conf for the above config
I managed to run only one jail with traffic redirected by pf but when comes in the second jail it doesn't work due to the port-IP unique bind. So we need a reverse proxy.
All the examples found around makes me confused cause they are not clear.
The scheme I want to use is Reverse proxy on host, no domain on host, websites inside jails with local servers each
Thanks for some example of configurations