Re: resolved - Mod_perl - URL rewriting.

2004-04-17 Thread Petr Duchon
I think your problem really is that you are doing the rewrite in the wrong phase. You must do it in the PerlTransHandler. The Authen phase is too late for that purpose. That's why you get things messed up. I've double checked rewriting in the transhandler works just fine in mp2. OK, Thank You.

Re: Mod_perl - URL rewriting.

2004-04-17 Thread Stas Bekman
Petr Duchon wrote: [...] ScriptAlias /awstats "/usr/local/awstats/wwwroot/cgi-bin" AuthType basic Options -Indexes AuthName "statistiky" Require valid-user PerlAuthenHandler "statauth" SetEnv "AWSTATS_FORCE_CONFIG" "ym_cz" I think your problem really is t

Re: Mod_perl - URL rewriting.

2004-04-17 Thread Petr Duchon
Randal L. Schwartz wrote: "Petr" == Petr Duchon <[EMAIL PROTECTED]> writes: Petr> ScriptAlias /awstats "/usr/local/awstats/wwwroot/cgi-bin/" One rule of thumb (occasionally violated but only when carefully considered) is that if the left side of Alias or ScriptAlias has a trailing sl

Re: Mod_perl - URL rewriting.

2004-04-17 Thread Randal L. Schwartz
> "Petr" == Petr Duchon <[EMAIL PROTECTED]> writes: Petr> ScriptAlias /awstats "/usr/local/awstats/wwwroot/cgi-bin/" One rule of thumb (occasionally violated but only when carefully considered) is that if the left side of Alias or ScriptAlias has a trailing slash, the right side should as wel

Re: Mod_perl - URL rewriting.

2004-04-17 Thread Petr Duchon
Stas Bekman wrote: Petr Duchon wrote: well, I see it in the browser. I'm requesting URL http://server/name/awstats, but the mozilla URL line will show /awstats/awstats.pl/?config=$name, instaed of /awstats/awstats.pl?config=$name. Aha! Now I get it. Can we see the relevant parts of your httpd.c

Re: Mod_perl - URL rewriting.

2004-04-17 Thread Stas Bekman
Petr Duchon wrote: well, I see it in the browser. I'm requesting URL http://server/name/awstats, but the mozilla URL line will show /awstats/awstats.pl/?config=$name, instaed of /awstats/awstats.pl?config=$name. Aha! Now I get it. Can we see the relevant parts of your httpd.conf? i've read the mod

Re: Mod_perl - URL rewriting.

2004-04-16 Thread Petr Duchon
well, I see it in the browser. I'm requesting URL http://server/name/awstats, but the mozilla URL line will show /awstats/awstats.pl/?config=$name, instaed of /awstats/awstats.pl?config=$name. i've read the mod_perl users guide, which contains similar example on page 182. the example in the guide

Re: Mod_perl - URL rewriting.

2004-04-16 Thread Stas Bekman
Petr Duchon wrote: When i put $r->uri('/awstats/awstats.pl'); $r->args("config=$name"); into my authen handler, the result is /awstats/awstats.pl/?config=$name, Yes, what I'm asking is where do you get that result? Where do you see it? Which stage, which code? In order to reproduce it,

Re: Mod_perl - URL rewriting.

2004-04-15 Thread Petr Duchon
When i put $r->uri('/awstats/awstats.pl'); $r->args("config=$name"); into my authen handler, the result is /awstats/awstats.pl/?config=$name, and not /awstats/awstats.pl?config=$name, as it should be. What do you mean by "result", Petr. please show us the code that you have the problem wit

Re: Mod_perl - URL rewriting.

2004-04-15 Thread Stas Bekman
Petr Duchon wrote: Hello folks! I've run into an horrible problem. When i put $r->uri('/awstats/awstats.pl'); $r->args("config=$name"); into my authen handler, the result is /awstats/awstats.pl/?config=$name, and not /awstats/awstats.pl?config=$name, as it should be. What do you mean by "res

Mod_perl - URL rewriting.

2004-04-15 Thread Petr Duchon
Hello folks! I've run into an horrible problem. When i put $r->uri('/awstats/awstats.pl'); $r->args("config=$name"); into my authen handler, the result is /awstats/awstats.pl/?config=$name, and not /awstats/awstats.pl?config=$name, as it should be. It's the trailing slash problem. My mod_per