Petr Duchon wrote:sure. here it is:
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?
<VirtualHost 195.122.196.217>
ServerName www.ym.cz
ServerAlias ym.cz
DocumentRoot /home/ym_cz/web
ErrorLog /var/log/apache2/ym.cz-error
LogLevel debug
TransferLog /var/log/apache2/ym.cz-access
Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
ScriptAlias /awstats "/usr/local/awstats/wwwroot/cgi-bin/" <Directory "/usr/local/awstats/wwwroot/cgi-bin/"> AuthType basic Options -Indexes AuthName "statistiky" Require valid-user PerlAuthenHandler "statauth" </Directory> </VirtualHost>
i've read the mod_perl users guide, which contains similar example on page 182.
the example in the guide implies that the trailing slash is *not* added.
This is what bothers me. it looks like a mystery to me.
the guide that you read is for mp1, and while most of the things are the same in mp2, some aren't and there could be bugs, both in mp2 and Apache2.
ok, I understand. The problem is definitely between chair and keyboard, but there must be a way to rewrite URIs in mp2, and I don't know it. I would guess that the uri() method must be told not to add the slash. I would patch the source, but I'm completely lost in the XS thing, so I can't do it.
Thank You, Petr.
-- Report problems: 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