fastcgi problem
Paul van der Linden
msn at paultjuh.org
Sat Feb 21 13:23:11 MSK 2009
Yes that works, I googled too, but apparently not good enough, thanks.
On Sat, 21 Feb 2009 13:11:51 +0300, Igor Sysoev wrote:
> On Sat, Feb 21, 2009 at 10:17:22AM +0100, Paul van der Linden wrote:
>
>> I was trying to install moin on fastcgi with nginx.
>> The problem is I only see the front page of the moin wiki, and any other
>> url don't seem to make its way through nginx to the fastcgi process. It
>> just displays the default page. Am I doing something wrong with my nginx
>> configuration?
>> My location configuration for moin :
>>
>>
>> location / {
>> fastcgi_pass localhost:8888;
>> fastcgi_index moin.fcg;
>>
>> fastcgi_param SCRIPT_FILENAME
>> /var/www/nginx-moin/$fastcgi_script_name;
>> fastcgi_param QUERY_STRING $query_string;
>> fastcgi_param REQUEST_METHOD $request_method;
>> fastcgi_param CONTENT_TYPE $content_type;
>> fastcgi_param CONTENT_LENGTH $content_length;
>> fastcgi_param DOCUMENT_URI $document_uri;
>> fastcgi_param DOCUMENT_ROOT /;
>>
>> }
>
> Googling I see that Moin wiki uses PATH_INFO to show a page.
> Therefore, if you use "/" as wiki root, try the following:
>
> location / {
> fastcgi_pass localhost:8888;
>
> fastcgi_param PATH_INFO $uri;
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
> }
More information about the nginx
mailing list