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 20, 2009 6:18:24 am
List:ru.sysoev.nginx

On Tue, Jan 20, 2009 at 02:35:38PM +0100, Lemon Head wrote:

i attached it , i gave up on the image verification and just set it back to vbulletin original captchta i'm using the vbseo rewrite rules from the following thread http://www.vbseo.com/f4/howto-nginx-23485/ they were posted by a person in the vbseo staff so thought theyll be fine

Attachments: http://www.ruby-forum.com/attachment/3183/nginx.conf

You should replace

# vbseo rewrite location /forum/ { rewrite ^/forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$
/forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;

if ($request_filename ~ "\.php$" ) { rewrite ^(.*)$ /forum/vbseo.php last; }

if (!-e $request_filename) { rewrite ^/forum/(.*)$ /forum/vbseo.php last; } }

with

location = /forum { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/forum/vbseo.php; include fastcgi_params; }

location /forum/ { rewrite ^/forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;

error_page 404 = /forum/vbseo.php; }

location ~ ^/forum/vbseo_sitemap/.+\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$uri; include fastcgi_params; }

location ~ ^/forum/.+\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/forum/vbseo.php; include fastcgi_params; }