I'm using ubuntu 8.10 with nginx/fastcgi running vBulletin with vBSeo as if I had a full server
(don't need to compile nginx) to setup ubuntu and you can use this configuration to setup vB & vBSeo vhost:
server {
listen 80;
server_name example.com;
rewrite ^/(.*)
http://www.example.com/$1 permanent;
}
server {
listen 80;
server_name
www.example.com; access_log /home/www/public_html/example.com/logs/access.log;
error_log /home/www/public_html/example.com/logs/error.log;
root /home/www/public_html/example.com/public/;
index index.html index.php;
# vBulletin & vBSeo Restricted
location ~ /forum/(admincp/|modcp/|vbseocp\.php).* {
root /home/www/public_html/example.com/public/;
auth_basic "Restricted";
auth_basic_user_file htpasswd;
}
# FastCGI
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/www/public_html/example.com/public$fastcgi_script_name;
include fastcgi_params;
}
# Expire Header for Images, JS and CSS
location ~* ^.+.(jpg|jpeg|gif|png|ico|css|js)$ {
root /home/www/public_html/example.com/public/;
access_log off;
expires 30d;
}
# vBSeo - Start
location /forum/ {
rewrite ^/forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
if (!-e $request_filename) {
rewrite ^(/forum/.*)$ /forum/vbseo.php last;
}
}
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*(admincp/|modcp/|vbseocp\.php).*) $1 last;
rewrite ^(/forum/.*)$ /forum/vbseo.php last;
}
# vBSeo - End
}
Make sure to edit the path's.