Trying to configure apache2 to load example.com/forum/ from a different document root, relative to the site root. Forums are installed somewhere else on the server.
Is there a directory alias command? I’ve found the alias configuration entry for apache, but had no luck.
Basically, I want example.com to have the same directory its always had, but example.com/forum/ to be hosted somewhere else, on the same server.
I tagged this question with mod_rewrite because I thought maybe it would be the key, here.
Cheers!
Aliasis the right way, unless you have some subtlety that you didn’t reveal in your question.The job of
Aliasis to take the abstract URL coming into your system and map it to a concrete filesystem path. Once it has done that, the request is no longer an URL but a path. If there is noAliasor similar directive handling that URL, then it will get mapped to a conrete path viaDocumentRoot.If this isn’t working, you have to debug it further. Are you getting errors when you access
/forum? Look in the error log.