Answer the question
In order to leave comments, you need to log in
Where to put your nginx config in Vestacp on Ubuntu?
I needed to mirror (proxy) the site using nginx. I already found how to set it up, but I don’t understand where to put the config. NGINX and all HTTP installed using Vestacp, Ubuntu. The whole gag is that vesta can overwrite the config, which I don't need.
Answer the question
In order to leave comments, you need to log in
In general, I did not wait for an answer. The toaster was a little blown away I
used this man: https://habrahabr.ru/post/158393/
In fact: I made a new user through the vestacp panel, where I registered only the domain that will be missed and do proxying. Then I went into the config: /home/[username]/conf/web/nginx.conf and simply changed the address of the site that needs to be proxyed in the location and location @fallback sections. Everything works, after rebooting it does not overwrite yet. But I think it's clear that if you try to add another subdomain to this user , the config will be overwritten.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question