Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu Jan 29, 2009 2:38 pm 
Offline
Senior Member

Joined: Wed Jan 21, 2009 7:13 pm
Posts: 126
Location: Portugal
Hi,

I'm using ubuntu 8.10 with nginx/fastcgi running vBulletin with vBSeo as if I had a full server :)
It's fast and easy to setup.

You can follow this guide (don't need to compile nginx) to setup ubuntu and you can use this configuration to setup vB & vBSeo vhost:

Quote:
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
}


This setup as an adicional security layer usgin http_auth.

Make sure to edit the path's.


Top
   
PostPosted: Thu Jan 29, 2009 6:36 pm 
Offline
Senior Newbie

Joined: Wed Sep 24, 2008 6:38 pm
Posts: 19
To run a single PHP FastCGI server with apache2-mpm-worker set DefaultMaxClassProcessCount and DefaultMinClassProcessCount to 1 (see Using PHP with fcgid & suexec on Apache 2.2).
Add these to two settings to the /etc/apache2/conf.d/php-fcgid.conf set up shown in Using PHP with mod_fcgid from the Typo3 website.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group