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

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

 



In reply to my own email

I've got it working by using a folder under my htdocs area, so rule is:

RewriteRule ^/trac/([[:alnum:]]+)(/?.*) /trac/trac.cgi$2
[E=TRAC_ENV:c:/program\ files/subversion/trac/oats/$1]

My prefered method would be to use cgi-bin/trac.cgi instead. I've tried 2
methods /cgi-bib... This fires a file not found, on checking the logs I find
its looking in my ..apache/htdocs/cgi-bin folder not apacge/cgi-bin. If I
try without the leading slash so cgi-bin... I get a 404 bad request. Hence I
move the cgi file into a folder under htdocs and hey presto it works...I'm
sooo close to the solution, just don't get this last bit.

Thanks Andy

> -----Original Message-----
> From: AndyJudson [mailto:ajudson@xxxxxxxxxxxxxxxxxxxxxx] 
> Sent: 12 April 2005 10:27
> 
> 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.
> 
> 

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