You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Roman Zillek <ro...@sec4you.com> on 2002/05/21 09:51:47 UTC
mod_rewrite, mod_proxy, mod_ssl, mod_radius && apache (of course
:-)) problem!!
Hi bro's in arms,
I got apache up an running as authenticating ssl-reverse-proxy with the
modules mentioned in the subject line.
This apache machine is in front of an M$ IIS (aka "bucksblaster")
running OWA (Oddlook Web Access).
It all works as expected up to the IIS that doesn't give a sh*t on case
sensitivity.
Enter scene "MOD_REWRITE":
As I read a little on the might an power of mod_rewrite I thought I'd
give it a try, but unfortunately I ran into problems.
Objective is, simple enough you might believe, to translate every
incoming URL from ANY-case to lowercase.
It all worked out perfectly on my local apache installed on my Windows
playstation without all that
authenticated ssl-reverse-proxy stuff and I inferred, as mod_rewrite
according to the manual hooks
into the apache API well before any other modules, that it should work
as well on the target machine.
Well, to make long story short, it didn't:
mod_rewrite is compiled in
RewriteEngine on
RewriteLog 9
RewriteMap lowercase int:tolower
RewriteRule ^(.*)$ ${lowercase:$1}
NOT EVEN ONE rewrite log entry !!
Do I need to put this statements into a special section when using SSL,
PROXY or RADIUS ???
Is there a simpler way to convert URLs to lowercase before processing ??
Is it recommendet to switch to apache V2 with regards to that "problem"??
thanks in advance for any help you provide
regards
Roman Zillek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite, mod_proxy, mod_ssl, mod_radius && apache (of course :-)) problem!!
Posted by Zac Stevens <bu...@cryptocracy.com>.
Hi Roman,
On Wed, May 22, 2002 at 12:16:45PM +0200, Roman Zillek wrote:
> Well, I found a rather misleading paragraph on the offical apache faq
> site "http://httpd.apache.org/docs/misc/FAQ.html#rewrite-nocase":
It's not really misleading, it just doesn't apply to your problem. It is
correct in saying that you can't make a URL case-insensitive, while you're
trying to make URLs lowercase. A subtle difference, but significant.
Anyway, without seeing your httpd.conf, it's hard to point at a specific
problem. Consider this in the way the request needs to be handled by
Apache for the scenario you have described to work:
1) Request is received by Apache
2) mod_rewrite applies your filter to lowercase the URI
3) Apache evaluates rewritten URI
3) Apache passes request to mod_proxy
If your rewrite log is not getting any entries, I would suspect that your
configuration is passing the request straight to mod_proxy, before
mod_rewrite has a chance to get at it.
How are the various pieces of this scenario applied in your httpd.conf?
In what context (VHost/Directory/Location) have you put the mod_rewrite
configuration?
Where does your proxy configuration sit relative to the above?
In short, I don't believe that there is any technical reason for this not
to work, so we just need to figure out what part of the configuration needs
tweaking.
Hope this helps a little,
Zac
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite, mod_proxy, mod_ssl, mod_radius && apache (of course :-)) problem!!
Posted by Stuart Dallas <st...@sharedserver.net>.
Roman Zillek <ro...@sec4you.com> wrote:
> But WHY is the lowercase Rewrite-Ruleset working on all of the URL on
> my Windows box ???
> According to the FAQ entry it shouldn't!
None of the filesystems used by Windows are case-sensitive. It is not
mod_rewrite that is doing it, it is a "feature" of the filesystem.
--
Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite, mod_proxy, mod_ssl, mod_radius && apache (of course :-)) problem!!
Posted by Robert Andersson <ro...@profundis.nu>.
On Wed, 22 May 2002, Roman Zillek wrote:
> Hi, just wondered if nobody has had this type of problem before since no
> responses came in up to now.
> Well, I found a rather misleading paragraph on the offical apache faq
> site "http://httpd.apache.org/docs/misc/FAQ.html#rewrite-nocase":
>
> <Quote>
> 6.How can I make all my URLs case-insensitive with mod_rewrite?
> You can't! The reasons are: first, that, case translations for arbitrary
> length URLs cannot be done via regex patterns and corresponding
> substitutions. One needs a per-character pattern like the sed/Perl
> tr|..|..| feature. Second, just making URLs always upper or lower case
> does not solve the whole problem of case-INSENSITIVE URLs, because URLs
> actually have to be rewritten to the correct case-variant for the file
> residing on the filesystem in order to allow Apache to access the file.
> And the Unix filesystem is always case-SENSITIVE.
>
> But there is a module named mod_speling.c in the Apache distribution.
> Try this module to help correct people who use mis-cased URLs.
> <\Quote>
>
> But WHY is the lowercase Rewrite-Ruleset working on all of the URL on my
> Windows box ???
> According to the FAQ entry it shouldn't!
The FAQ says:
"[...] because URLs actually have to be rewritten to the correct
case-variant for the file residing on the filesystem in order to allow
Apache to access the file. And the Unix filesystem is always
case-SENSITIVE."
Windows filesystem isn't, so an Apache server residing on a Windows system,
will allways serve case-insensitive.
Regards,
Robert Andersson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite, mod_proxy, mod_ssl, mod_radius && apache (of course:-))
problem!!
Posted by BAO RuiXian <ba...@atbusiness.com>.
Roman Zillek wrote:
>
> And the Unix filesystem is always case-SENSITIVE.
>
> But there is a module named mod_speling.c in the Apache distribution.
> Try this module to help correct people who use mis-cased URLs.
> <\Quote>
>
> But WHY is the lowercase Rewrite-Ruleset working on all of the URL on my
> Windows box ???
Is that because the Windows filesystem always case-INSENSITIVE?
Bao
--
BAO RuiXian, PROGRAMMER, Technologies Team, Project Services Group
AtBusiness Communications Corp., Kaapeliaukio 1, FIN-00180 Helsinki
tel. +358-9-2311 6674, mob. +358-50-329 6275, fax +358-9-2311 6601
http://www.atbusiness.com, email: bao.ruixian@atbusiness.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_rewrite, mod_proxy, mod_ssl, mod_radius && apache (of course
:-)) problem!!
Posted by Roman Zillek <ro...@sec4you.com>.
Hi, just wondered if nobody has had this type of problem before since no
responses came in up to now.
Well, I found a rather misleading paragraph on the offical apache faq
site "http://httpd.apache.org/docs/misc/FAQ.html#rewrite-nocase":
<Quote>
6.How can I make all my URLs case-insensitive with mod_rewrite?
You can't! The reasons are: first, that, case translations for arbitrary
length URLs cannot be done via regex patterns and corresponding
substitutions. One needs a per-character pattern like the sed/Perl
tr|..|..| feature. Second, just making URLs always upper or lower case
does not solve the whole problem of case-INSENSITIVE URLs, because URLs
actually have to be rewritten to the correct case-variant for the file
residing on the filesystem in order to allow Apache to access the file.
And the Unix filesystem is always case-SENSITIVE.
But there is a module named mod_speling.c in the Apache distribution.
Try this module to help correct people who use mis-cased URLs.
<\Quote>
But WHY is the lowercase Rewrite-Ruleset working on all of the URL on my
Windows box ???
According to the FAQ entry it shouldn't!
Anybody out there able to direct me to some sort of solution, please
thx
Roman
Roman Zillek wrote:
> Hi bro's in arms,
> I got apache up an running as authenticating ssl-reverse-proxy with
> the modules mentioned in the subject line.
>
> This apache machine is in front of an M$ IIS (aka "bucksblaster")
> running OWA (Oddlook Web Access).
>
> It all works as expected up to the IIS that doesn't give a sh*t on
> case sensitivity.
>
> Enter scene "MOD_REWRITE":
>
> As I read a little on the might an power of mod_rewrite I thought I'd
> give it a try, but unfortunately I ran into problems.
> Objective is, simple enough you might believe, to translate every
> incoming URL from ANY-case to lowercase.
> It all worked out perfectly on my local apache installed on my Windows
> playstation without all that
> authenticated ssl-reverse-proxy stuff and I inferred, as mod_rewrite
> according to the manual hooks
> into the apache API well before any other modules, that it should work
> as well on the target machine.
>
> Well, to make long story short, it didn't:
> mod_rewrite is compiled in
> RewriteEngine on
> RewriteLog 9
> RewriteMap lowercase int:tolower
> RewriteRule ^(.*)$ ${lowercase:$1}
>
>
> NOT EVEN ONE rewrite log entry !!
> Do I need to put this statements into a special section when using
> SSL, PROXY or RADIUS ???
>
> Is there a simpler way to convert URLs to lowercase before processing ??
>
> Is it recommendet to switch to apache V2 with regards to that "problem"??
>
> thanks in advance for any help you provide
>
> regards
> Roman Zillek
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org