| View previous topic :: View next topic |
| Author |
Message |
nfn Senior Member
Joined: 21 Jan 2009 Posts: 64
|
Posted: Thu Jan 29, 2009 1:38 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
kurtk Senior Newbie
Joined: 24 Sep 2008 Posts: 19
|
Posted: Thu Jan 29, 2009 5:36 pm Post subject: Setting the number of FastCGI parent servers |
|
|
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 |
|
 |
|
|
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
|
|