RE: [users@httpd] rewrite rule not setting environment variable

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

 



Hi Joshua, thanks for the advice... 

you're right the url was changing, but to get to the right folder I need to
use ../cgi-bin/trac.cgi as without the double dots it goes to htdocs/cgi...
Etc. 

With the change in place I get a 400 bad request error, with nothing useful
in the logs.

> -----Original Message-----
> From: Joshua Slive [mailto:jslive@xxxxxxxxx] 
> Sent: 11 April 2005 17:11
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@httpd] rewrite rule not setting 
> environment variable
> 
> On Apr 11, 2005 12:04 PM, AndyJudson 
> <ajudson@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> >  ## this would be my equivalent rewrite rule, but fails... 
> always says 
> > the env-var is not set!!
> >  
> >  #RewriteRule ^/trac/([[:alnum:]]+)(/?.*)
> > http://www.oatsoft.org/cgi-bin/trac.cgi$2
> > [E=TRAC_ENV:"c:\\program\ files\\subversion\\trac\\oats"\\$1]
> 
> Does the URL in the client's location bar change with the 
> direct?  If so, you are doing an external-redirect, which 
> will lose the env variable.  Replace http://www.oatsoft.... 
> with simply
> /cgi-bin/trac.cgi$2 to get an internal-redirect.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> 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
> 

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