How do I set up virtual hosts?

workspace
server

#1

Good afternoon. I quite difficult to understand the English language documentation. My index.php is in the frontend/web/. When you go to https://my-project-name.c9users.io, I want to get right to https://my-project-name.c9users.io/frontend/web/index.php (but the address bar will be written https://my-project-name.c9users.io). 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.


#2

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