How do I set up virtual hosts?



Good afternoon. I quite difficult to understand the English language documentation. My index.php is in the frontend/web/. When you go to, I want to get right to (but the address bar will be written How can i do this? (Before, on the local machine of Ubuntu, I set up virtual hosts in the httpd-vhosts.conf and host file in hosts.conf file, how do I do the same thing here? If possible, please describe how much detail as possible with code examples. Thank you.


It’s been a while since I’ve used Apache, but if I recall correctly, all you need to do is create a .htaccess file in your workspace root, and put the following line in it:
DocumentIndex frontend/web/index.php