Re: [users@httpd] Mod_rewrite rule for renamed FastCGI scripts

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

 



Thanks for your help. The htaccess file seems to work well. Referring back to the the mod_rewrite documentation and URL Rewriting Guide makes more sense now. 

Jeremy Sellors


On Sep 19, 2006, at 5:53 AM, Eric Covener wrote:

On 9/19/06, Jeremy Sellors nwt <jksellors@xxxxxxxxxxxxxxx> wrote:

I have changed a script name suffix from .cgi to
 .fcgi to enable the script to run under FastCGI
RewriteEngine On
RewriteRule ^mt.fcgi(.) mt.fcgi$1 [L]
                                  ^      ^
in the .htaccess file but this does not work.

I put carets under the two things that probably prevent your rule from
even matching, if I understand correctly.

Try setting RewriteBase in that htaccess file, and also reconsider
your RewriteRule.  I'd think it'd be more of the form

RewriteBase /mtw/
RewriteRule ^mt.cgi$ mt.fcgi [PT]

(Or look at the action parameter of the login form)




-- 
Eric Covener

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


Jeremy Sellors

"I'm addicted to placebos. I could quit but it wouldn't matter."
  (Steve Wright)




[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