Recently I migrated most of cog motive’s net assets from DreamHost to Google Apps (for mail) and Rackspace (for hosting). Besides a hilarious issue concerning webforms (which I will get into later, it has mostly been seamless. However, I hit a snag to which I can’t quite find the answer.
On DreamHost I would use a lot of software on one site, most often a CMS (WordPress, Drupal)/wiki (MediaWiki, DokuWiki)/microblog (StatusNet)/forum (FluxBB, Vanilla) combo. I don’t like running a lot of sub-domains, so I would have them all trail off the domain name (an example is interi.org/visual, which points to a Zenphoto installation, while /complex points to a DokuWiki installation).
To manage so much software I used DreamHost’s remap sub-directory feature in their control panel extensively. My directory structure was normally a directory with the domain’s name, which included a main sub-directory, and another sub-directory for each thing I was running. So, cog motive looked like this:
wiki
community
gallery
projects
sandbox
Main is always where the domain resolves to by itself, and the other directories are either sub-domains or are remapped to a path after the domain.
My issue is, I have no idea how that is done. I am not sure what DreamHost’s panel is actually doing, though I suspect it is telling Apache to do some voodoo. I am trying to find something about getting Apache to remap directories to particular URIs, but instructions for setting up URL rewriting is polluting my searches.
Does anyone know either how to do this, or a resource I can check to see how to do it? Where/what am I editing to tell Apache what to do?
I figured it out.
Related posts:
Pingback: Domain “remapping”, or Alias, as it is called | standing alone in complexity