K
K
kapitansen2019-06-25 12:33:24
Web servers
kapitansen, 2019-06-25 12:33:24

How to make site files stored in the domain folder and not in public_html?

There is a server on Digital Ocean, I installed VestaCP there. By default, the site structure is:
domain.com --cgi
-bin
--document_errors
--logs
--private
--public_html
--public_shtml
--stats
domain.com.
What settings should I look at? Apache? Nginx? VestaCP? Is it possible to make some kind of template for creating a new site so that the next time the folder hierarchy is immediately the way I need it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2019-06-25
@kotomyava

There is a very simple way - do not install Vesta at all (it is absolutely disgusting in terms of quality, by the way, the panel), and write the nginx config yourself, the way you like.
If you decide to use some panel, then you don’t need to redo anything, it will only create unnecessary difficulties for you out of the blue, and will not give you any real advantages.
Well, yes, the site structure starts below public_html, which will be your site root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question