how to rewrite this: apache to nginx

Igor Sysoev is at rambler-co.ru
Fri Aug 29 15:29:26 MSD 2008


On Fri, Aug 29, 2008 at 01:10:47PM +0200, Robert Gabriel wrote:

> Igor Sysoev wrote:
> > On Fri, Aug 29, 2008 at 12:46:12PM +0200, Robert Gabriel wrote:
> > 
> >> > right $document_root variable in fastcgi_param.
> >> > 
> >> > PS. looking at these indentions I'm starting to understand python more
> >> > and more.
> >> 
> >> Yes http://helpdesk.visualserver.org/index.php works,  but when I try to 
> >> login everything starts to be screwed up.
> > 
> > The login page POSTs to /index.php/, then browser gets various URLs 
> > like:
> > /index.php/styles/default/cerberus.css?v=726
> > 
> > Is it correct ?
> 
> Yeah something like that, or 
> http://helpdesk.visualserver.org/index.php/login

Then you need to change

-       location ~* \.php$ {
+       location ~* \.php(/|$) {


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list