A
A
alexdora2016-03-23 13:56:38
Nginx
alexdora, 2016-03-23 13:56:38

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

1 answer(s)
A
alexdora, 2016-03-26
@alexdora

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 question

Ask a Question

731 491 924 answers to any question