V
V
Vanookay2020-05-15 12:39:02
Apache HTTP Server
Vanookay, 2020-05-15 12:39:02

How to change DocumentRoot Docker + Apache?

Hello.
There is a Yii2 advanced project, there are 2 folders in the root: 1) public_html, which contains our index.php and 2) the name of the project itself, which contains frontend and backend.
Now I am uploading this project locally to the docker, I need to configure routing to the public_html folder, as I understand it, specify the DocumentRoot in the conf. Apache2 file, but it's not clear to me how to do it. In OpenServer, everything was done quite easily - the path to the folder was specified in the domain settings and everything worked fine.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question