Re: [users@httpd] RewriteRule problems

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

 



Ian Huynh wrote:
what does your rewrite log file say? If you add RewriteEngine on RewriteLog "/usr/local/var/apache/logs/rewrite.log" <<--- change this to your appropriate path
RewriteLogLevel 9                                       <<-- use level 9 only for debugging.
RewriteRule ^/old/(.*) http://ukrbcsr01/$1 [P]         <<-- make sure you don't pick up the next rules, i'd use [P,L]

if the proxy was success, you would see something like this in your rewrite log

127.0.0.1 - - [06/Jun/2005:10:20:56 --0700] [localhost/sid#23c458][rid#82fa40/initial] (3) applying pattern '^/old/(.*)' to uri '/old/something'
127.0.0.1 - - [06/Jun/2005:10:20:56 --0700] [localhost/sid#23c458][rid#82fa40/initial] (2) rewrite /old/something -> http://ukrbcsr01/something
127.0.0.1 - - [06/Jun/2005:10:20:56 --0700] [localhost/sid#23c458][rid#82fa40/initial] (2) forcing proxy-throughput with http://ukrbcsr01/something

It does indeed say that, plus this:

   (1) go-ahead with proxy request proxy:http://ukrbcsr01/login.php [OK]

So you would think the proxy request went through.

And yet I get a Forbidden message, irrespective of whether the server I'm trying to proxy through to is running or not.

I get a "Not Found" if I remove the RewriteRule, as one would expect.

Thanks again if you could help further... :/
Arne Heizmann


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


---------------------------------------------------------------------
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