[thelist] apache alias, rewrite or something

Dan McCullough dan.mccullough at gmail.com
Mon Jul 3 07:45:03 CDT 2006


Symbolic link wont work because there are config options that are site
specific, like table names and stuff like that.

On 6/30/06, Eduardo Kienetz <eduardok at gmail.com> wrote:
> 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/
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list