Report this

What is the reason for this report?

Subdirectory in virtualhost apache config

Posted on June 12, 2014

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 85.85.85.185, but I want to have my website on 85.85.85.185/app.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Inside of your Apache Virtual Host, you simply need to add an Alias directive: <pre> Alias /app /path/to/app </pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.