On Sat, Apr 27, 2013 at 02:48:58PM -0400, Alex Guzu wrote:
>  
> 
> That is exactly how I set up monkey, using php-fpm and fastcgi.
> I could not get php to work any other way.
> 
> However if I try for example http://example.com/test.php
> it works.
> But if I try http://example.com/test
> it says file not found.
> 
> Maybe I missed something:
> 
> fastcgi.conf:
> 
> [FASTCGI_SERVER]
> ServerName php5-fpm1
> ServerPath  /run/php-fpm/php-fpm.sock
> MaxConnections 5
> 
> [FASTCGI_LOCATION]
>         LocationName php5_location
>         ServerNames php5-fpm1
>         Match /*.php
> 

You're not missing anything, this is a limitation with monkey/fastcgi.
We have no rewrite/alias support yet, but there is a suggested gsoc
project for implementing just that.

For now, you can not make this work.

> 
> > The fastcgi plugin looks for a .php extension in the file name, not on
> > the url, so it should work.

I wrote that this works, but it only works when monkey resolved the
correct file.
This happens when either the url point at a file in htdocs that matches,
or when the Indexfile directive in monkey.conf resolves to something
that matches.
Sorry for implying that it worked in other cases.

> > 
> > > _______________________________________________
> > > Monkey mailing list
> > > [email protected]
> > > http://lists.monkey-project.com/listinfo/monkey
> > 
> > 
> > -- 
> > Sonny Karlsson
> > _______________________________________________
> > Monkey mailing list
> > [email protected]
> > http://lists.monkey-project.com/listinfo/monkey
>                                         

-- 
Sonny Karlsson
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to