act:ualise | technology

Posts Tagged ‘apache

23 Nov, 2008

apache domain to subdomain redirection

Posted by: j pimmel In: linux| technical

In setting up this site, I was recently struggling with the issue of how to redirect say
http://domain.com
to
http://sub.domain.com
without it causing an infinite recursion loop when visiting
http://sub.domain.com/foo
In the end my VirtualHosts config looked like this

NameVirtualHost *:80
<VirtualHost *:80>
[...]


About

act:ualise | technical blog

notes, observations and obssessions on software quality, agile software development, testing and grails


part of the EnergizedWork experiment