RE: [users@httpd] URL with 2 question marks being truncated between access and rewrite stage

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

 



 

> -----Original Message-----
> From: Peter J Milanese [mailto:PMilanese@xxxxxxxx] 
> Sent: Tuesday, March 15, 2005 2:33 PM
> To: users
> Subject: Re: [users@httpd] URL with 2 question marks being 
> truncated between access and rewrite stage
> 
> You did not include your rewrite config. That would be helpful.

I'm including it below... However, the point is that the URL is
truncated _before_ mod_rewrite gets to rewrite it: the truncated URL is
passed to mod_rewrite (per the transcript) and the same one comes out.
Also, is there anyway to get detailed output on just what apache is
doing in each of its processing phases?

RewriteEngine   on 
  RewriteOptions inherit 
 
  RewriteRule /favicon.ico / [G] 
  RewriteRule     ^/faq         http://www.q1.vl.com
 
  # this should handle the banner requests before mason 
  # not sure who first added them. 
  RewriteCond /home/value/banners/%{REQUEST_URI}  -f 
  RewriteRule ^/((g|hg|ad.s)/.+) /home/kal/scanners/$1 [L] 
 
  RewriteCond /home/value/banners.old/%{REQUEST_URI}  -f 
  RewriteRule ^/((g|hg|ad.s)/.+) /home/kal/scanners.old/$1 [L] 
 
  # this has to come last, or the above rules don't get reached 
  # but I'll leave in the conditions just in case 
  RewriteCond     %{REQUEST_FILENAME} !^/img/ 
  RewriteCond     %{REQUEST_FILENAME} !^/styles/ 
  RewriteCond     %{REQUEST_FILENAME} !^/g/ 
  # add rewrite for /ad.s, since it wasn't in before 
  RewriteCond     %{REQUEST_FILENAME} !^/ad.s/ 
 
  RewriteRule     ^/(.*)        http://localhost:8989/$1 [P] 

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