Hi all, I have a php application that needs rewritting to be scalable, in the mean time I'm looking for a quick way to consolidate the deployments to one folder.
Currently each deployment has its own folder, meaning if I need to update anything it has to be copied in lots of places.
What I'm going to do is make a quick change so the config file is loaded depending on the URL.
So www.xyz.com/app/cus1 Would load customer 1's config
So www.xyz.com/app/cus2 Would load customer 2's config
I could do this by using an Alias:
Alias /app/cus1 "/www/the_apps_files"
Alias /app/cus2 "/www/the_apps_files"
But that is a pain and requires a server restart when a new customer is added.
What I'd like to do is something like
AliasMatch ^/app/(.*)/ "/www/the_apps_files"
This however falls over, can anyone please point me in the right direction? I've tried variations on the above but none seem to be right.