Is it possible for apache to determine DocumentRoot at runtime?

79 Views Asked by At

I have a site, widgets.com.

Upon initial visit to widgets.com, the user should land on the landing page (codebase is at /home/web/landing). On this page will be our beautiful graphics, and a link to log in. The user will click the login button (*something else should probably happen here as well. Maybe php sets a variable/cookie to tell apache that the user has clicked the login button so that the DocumentRoot can change), and then they will be directed to our main system (codebase is at /home/web/main-application) for authenticating.

Long story short, when the user clicks on the login button, the main system will take over, so I would need the documentroot to change at runtime. Is this possible, and how would I go about this?

I have looked at mod_define, and mod_macro, but I get the feeling that these are for creating dynamic configuration files that will not change at runtime.

0

There are 0 best solutions below