> http://domain.tld = DocumentRoot /home/domain.tld/htdocs
> 
> https://secure.provider.tld/secure/domain.tld/
> 
> URI is parsed for ^/secure/([.]*[\.]+[.]*)/(.*)
> 
> <Perl>
> DocumentRoot is then dynamically replaced with $1
> </Perl>
> 
> I was trying to use mod_rewrite and mod_vhost_alias to do this, but I
> just could not get the environment variables into DocumentRoot.

see recipe 4.3 in the mod_perl developer's cookbook, which is available for
free from here

http://www.webreference.com/programming/perl/cookbook/chap4/2.html

and the code is here

http://www.modperlcookbook.org/code/ch04/Cookbook/Userdir.pm

but you'll also want to read up on translation handlers and the request
cycle in general

http://www.modperlcookbook.org/

HTH

--Geoff


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to