Linode.com Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups  RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Would 360 Linode be sufficient?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Linode.com Forum Forum Index -> Sales Questions and Answers
View previous topic :: View next topic  
Author Message
nfn
Senior Member


Joined: 21 Jan 2009
Posts: 64

PostPosted: Thu Jan 29, 2009 1:38 pm    Post subject: Reply with quote

Hi,

I'm using ubuntu 8.10 with nginx/fastcgi running vBulletin with vBSeo as if I had a full server Smile
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.
Back to top
View user's profile Send private message
kurtk
Senior Newbie


Joined: 24 Sep 2008
Posts: 19

PostPosted: Thu Jan 29, 2009 5:36 pm    Post subject: Setting the number of FastCGI parent servers Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Linode.com Forum Forum Index -> Sales Questions and Answers All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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
You cannot vote in polls in this forum

Forum Archive
RSS 2.0 | Additional RSS options
Powered by phpBB © 2001, 2005 phpBB Group

Home | Members | Contact Us | Terms of Service | ™ © 2003-2008 Linode, LLC. All rights reserved.