I need to open a website not from the root folder of the project but from a sub folder.
/data/www/project-1/htdocs/app
I followed the instruction about setting a specific virtual host for one project.
- created a folder .devilbox in project folder
- copied there the template and renamed to apache24.yml
- edited just 2 lines, the document root and directory:
from
DocumentRoot “DOCUMENT_ROOT”
<Directory “DOCUMENT_ROOT”>
to
DocumentRoot “DOCUMENT_ROOT/app”
<Directory “DOCUMENT_ROOT/app”>
- restarted the server
now I see that the changes are applied correctly in project-1.conf
DocumentRoot “/shared/httpd/project-1/htdocs/app”
<Directory “/shared/httpd/project-1/htdocs/app”>
But the homepage of the website is not found
Oops! An Error Occurred
The server returned a “404 Not Found”.
And the home page URL in browser is very long and looks like this:
What could be the problem?