Hello everyone,
I'm quite new to jails, have read a lot of doc and forum posts and am a bit lost wondering what is the best/easiest/safest set up to serve several websites from the same server. I would like to put each website into its own jail, and use nginx as webserver.
Questions:
1. Is it necessary to use and configure the host's PF to redirect http traffic to the jails? Or setting up a webserver (like www/nginx) on the host is an alternative way of doing the same thing?
2. If using pf is necessary, how is it possible to redirect traffic to several different jails and not only one?
3. Is there a way to put NGINX in only one jail that would be shared with all the other ones? (In order to update only the jail running NGINX).
4. I've read (or misunderstood?) about letting NGINX run on the host and put the php into jails: how is it possible without running another NGINX instance inside the PHP jails?
Many thanks for any hint!
QZ.
I'm quite new to jails, have read a lot of doc and forum posts and am a bit lost wondering what is the best/easiest/safest set up to serve several websites from the same server. I would like to put each website into its own jail, and use nginx as webserver.
Questions:
1. Is it necessary to use and configure the host's PF to redirect http traffic to the jails? Or setting up a webserver (like www/nginx) on the host is an alternative way of doing the same thing?
2. If using pf is necessary, how is it possible to redirect traffic to several different jails and not only one?
3. Is there a way to put NGINX in only one jail that would be shared with all the other ones? (In order to update only the jail running NGINX).
4. I've read (or misunderstood?) about letting NGINX run on the host and put the php into jails: how is it possible without running another NGINX instance inside the PHP jails?
Many thanks for any hint!
QZ.