Customize specific virtual host

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.

  1. created a folder .devilbox in project folder
  2. copied there the template and renamed to apache24.yml
  3. 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”>

  1. 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:

http://project-1.loc/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/shared/httpd/project-1/htdocs/project-1.loc/public/index.php/

What could be the problem?