[thelist] Local apache

Ron Dorman rwd at csi1st.net
Tue Jan 27 07:57:03 CST 2004


Place a 'DocumentRoot /path-to-site-root' statement in each virtual host 
definition in the httpd.conf file.

Ron D.

Jeroen Coumans wrote:

>Hi,
>I have several websites which I maintain. To simplify updates to the
>navigation, I've made all links absolute (eg. /about/ instead of
>../../about/). To test locally, I've installed Apache. However, I'm
>having troubles figuring out how to configure it so that it works
>locally. For example, I have /var/www/website1.com and
>/var/www/website2.com.
>
>Is it possible to configure Apache so that it translates absolute links
>to the respective document root? I've tried aliasing, but that only
>works for one website. I've also read about virtual hosts but that seems
>to require a DNS server, and I'm a bit reluctant to complicate my setup
>unless it's absolutely necessary.
>
>Thanks in advance,
>
>  
>




More information about the thelist mailing list