Changeset 1354


Ignore:
Timestamp:
12/15/08 03:19:01 (3 years ago)
Author:
GilmarSantosJr
Message:

Item6087: now FastCGI engine is prepared to handle all actions instead of just view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FastCGIEngineContrib/lib/Foswiki/Engine/FastCGI.pm

    r1349 r1354  
    8484} 
    8585 
     86sub preparePath { 
     87    my $this = shift; 
     88 
     89    # In some hosted environments, users don't have access to "Alias", so they 
     90    # should use in .htaccess something like: 
     91    # 
     92    # SetHandler foswiki-fastcgi 
     93    # Action foswiki-fastcgi /foswiki/bin/foswiki.fcgi 
     94    # <Files "foswiki.fcgi"> 
     95    #    SetHandler fastcgi-script 
     96    # </Files> 
     97    # 
     98    # but then, the script is called by the webserver as 
     99    # /foswiki/bin/foswiki.fcgi/foswiki/bin/edit, for example. In other words: 
     100    # the seen PATH_INFO starts with ScriptUrlPath, so it must be removed. This 
     101    # way, SUPER::preparePath works fine. 
     102 
     103    $ENV{PATH_INFO} =~ s#^$Foswiki::cfg{ScriptUrlPath}/*#/#; 
     104    $this->SUPER::preparePath(@_); 
     105} 
     106 
    86107sub write { 
    87108    my ($this, $buffer) = @_; 
Note: See TracChangeset for help on using the changeset viewer.