fastcgi problem
Igor Sysoev
is at rambler-co.ru
Sat Feb 21 13:27:06 MSK 2009
On Sat, Feb 21, 2009 at 11:23:11AM +0100, Paul van der Linden wrote:
> Yes that works, I googled too, but apparently not good enough, thanks.
What are the issues ?
BTW, in 0.7.31 the fastcgi_split_path_info had been introduced:
location /wiki {
fastcgi_split_path_info ^(/wiki)(.*)$;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
> 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;
> > }
>
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list