# mod_rewrite to app root for non / based app
{
my $r = get_req (0,
+ REDIRECT_URL => '/comics/',
SCRIPT_NAME => '/comics/dispatch.cgi',
REQUEST_URI => '/comics/',
);
{
my $r = get_req (0,
PATH_INFO => '/foo/bar.gif',
+ REDIRECT_URL => '/comics/foo/bar.gif',
SCRIPT_NAME => '/comics/dispatch.cgi',
REQUEST_URI => '/comics/foo/bar.gif',
);
is ''.$r->base, 'http://www.foo.com/oslobilder/', 'base correct';
}
{
- local $TODO = 'Another mod_rewrite case';
my $r = get_req (0,
PATH_INFO => '/auth/login',
SCRIPT_NAME => '/tx',