Neutral Axis

VirtualHost Configuration – First Trial

by on May.27, 2009, under Uncategorized

With permalinks now working, I’d like to figure out how to use Apache’s virtualhosts to make different URLs go to different folders as their root.,, and would go to different folders as their document roots.  My first attempt only partially worked.

As my first attempt, I added the following code to httpd.conf.

<VirtualHost *:80>
    DocumentRoot /var/www/wordpress

That partially worked, but with two failings.  First, it redirected even servernames other than the one indicated to documentroot.  Second, while it loaded this blog homepage correctly, links resulted in internal server errors showing “Request exceeded the limit of 10 internal redirects due to probable configuration error.”  That sounds like maybe it means there’s a loop happening, but I don’t know why yet.

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!


A few highly recommended websites...