Subdirectory in virtualhost apache config

Posted June 12, 2014 17.8k views
I've got a virtualhost set up for my root, but I want it to have it like: serverip/folder. How am I suppose to configurate that in my apache? So my root is, but I want to have my website on

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Inside of your Apache Virtual Host, you simply need to add an Alias directive:
Alias /app /path/to/app