C
C
chief2019-12-05 16:25:40
Nginx
chief, 2019-12-05 16:25:40

How to raise your hosting on Freebsd?

The title of the question is too vague. I had to simplify it to fit :)
In general, the task is to make a web server for various sites and experiments on a home PC server.
I decided to do this: The router forwards port 80 to the PC server 192.168.1.2.
On the PC, nginx is running, which, depending on the HTTP header, redirects to a specific Jail with its own LEMP\LAMP environment.
Help: write the rules for nginx on the PC itself and nginx on Jail`ax correctly (well, like how to redirect to a specific Jail with an internal IP of 10.0.0.1-10.0.0.5 for example).
Also questions:
- Is it possible to slap another nginx on the router so that the web face is also on port 80, for example, on webui.mydomain.com? and all the rest were forwarded to 192.168.1.2:80?
- On which nginx should I run ssl certbot? on the very first (router) or personally on each Jail? (SSL is issued personally to the site? how then to do auto-renewal of certificates through a bot? and what to write in the settings?)
- What rules to write in ipfw so that Jails do not see each other?
// I understand that the topic is extensive. you can answer in parts :)
////Why Freebsd + Jails and not Docker? - Well, the docker did not master it, + here https://m.habr.com/ru/post/477124/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2019-12-05
@shambler81

braynicp
vestacp
ispconfig3 bitrixVM
Install
on centos or debian.

D
Dim Boy, 2019-12-05
@twix007

well at least the solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question