Changeset 1354
- Timestamp:
- 12/15/08 03:19:01 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FastCGIEngineContrib/lib/Foswiki/Engine/FastCGI.pm
r1349 r1354 84 84 } 85 85 86 sub 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 86 107 sub write { 87 108 my ($this, $buffer) = @_;
Note: See TracChangeset
for help on using the changeset viewer.
