[thelist] apache alias, rewrite or something

Eduardo Kienetz eduardok at gmail.com
Fri Jun 30 19:40:19 CDT 2006


On 6/29/06, Dan McCullough <dan.mccullough at gmail.com> wrote:
> Trying to allow different domains share code, now I have the part
> where they can share the code, however they all need their own config
> file and so I am having difficultly with trying to get each domain to
> read the config file from their doc root.
>
> So what I have is and this is inside the VirtualHost directive.
>
> Alias / "/usr/share/app"
> Alias /usr/share/app/config.php "/home/site/domain.com/htdocs/config.php"
> or
> Alias config.php "/home/site/domain.com/htdocs/config.php"
>
> This doesnt look like the right way to go so not sure if a Rewrite
> Rule should be used or not.

Why don't you use a symbolic link? Any special reason?
ln -s /home/site/domain.com/htdocs/config.php
/home/site/anotherdomain.com/htdocs/config.php

/home/site/anotherdomain.com/htdocs/config.php will point to
/home/site/domain.com/htdocs/config.php

-- 
Eduardo  Bacchi Kienetz
LPI Certified - Level 2
http://www.noticiaslinux.com.br/eduardo/



More information about the thelist mailing list