Re: Rewrite does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/12/07, Peter Huesser <peter.huesser@xxxxxx> wrote:
>
> Another thought: Did you set the directive RewritelogLevel at least to
> 4? (6 = highest used). Below loglevel 4, the processing of conditions
> is not being logged.
>
Wow, that was the break-through.Had a loglevel of 3 until now. Here the
new log entries:

129.129.194.181 - - [12/Jan/2007:10:06:29 +0100]
[server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (2) init rewrite engine
with requested uri /usage/
129.129.194.181 - - [12/Jan/2007:10:06:29 +0100]
[server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (3) applying pattern
'^/usage' to uri '/usage/'
129.129.194.181 - - [12/Jan/2007:10:06:29 +0100]
[server.psi.ch/sid#80c1cc8][rid#8140eb8/initial] (4) RewriteCond:
input='129.129.194.181' pattern='\.psi\.ch$' => not-matched

I changed the RewriteCond to

RewriteCond %{REMOTE_HOST} ^129\.129\.

No it works!! Krist van Besien wrote a few mails ago "What might also be
an issue here is that reverse DNS doesn't work properly". So it seems
that he was right. I checked it on the machine (server.psi.ch) using
"nslookup IP" and I got the correct answer. Therefor I thought this
could not be the problem. But apache may to behave different.

Apache does not do reverse lookups on client host IPs by default.
See:
http://httpd.apache.org/docs/2.0/mod/core.html#hostnamelookups

Krist

--
krist.vanbesien@xxxxxxxxx
Bremgarten b. Bern, Switzerland
--
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux