17 messages in ru.sysoev.nginxRe: can some1 please convert this hta...
FromSent OnAttachments
Lemon HeadJan 15, 2009 11:53 am 
Igor SysoevJan 15, 2009 12:05 pm 
Lemon HeadJan 15, 2009 1:40 pm 
Lemon HeadJan 16, 2009 2:15 am 
Igor SysoevJan 16, 2009 4:09 am 
mikeJan 16, 2009 9:41 am 
Igor SysoevJan 16, 2009 11:09 am 
Lemon HeadJan 20, 2009 5:14 am 
Igor SysoevJan 20, 2009 5:18 am 
Lemon HeadJan 20, 2009 5:24 am 
Lemon HeadJan 20, 2009 5:35 am 
Igor SysoevJan 20, 2009 6:18 am 
Lemon HeadJan 20, 2009 6:53 am 
Igor SysoevJan 20, 2009 7:30 am 
Lemon HeadJan 20, 2009 9:38 am 
Lemon HeadJan 20, 2009 9:40 am 
Igor SysoevJan 20, 2009 1:44 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: can some1 please convert this htaccess to nginx rewrite?Actions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Jan 15, 2009 12:05:43 pm
List:ru.sysoev.nginx

On Thu, Jan 15, 2009 at 08:53:55PM +0100, Lemon Head wrote:

i got a signup verification script for my forum that shows images and asks the user to match it with the provided word it worked fine when i was using apache but today after i made the switch to nginx the images dont load anymore this script have an .htaccess file that contains: RewriteEngine on RewriteRule (.*) /show.php

can someone please convert it to nginx rewrite? also i'm not sure if it matters but the full path to the .php file is /usr/share/nginx/html/forum another small problem i have is that if i get into http://mysite/forum it doesnt load the page,but if i add a secondary slash however as in /forum/ it works fine how can i fix it? thanks in advance

Something like this:

location /forum { fastcgi_pass ...; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/forum/show.php; include fastcgi_params; }