最新消息:

IPB(Invision Power Board)nginx配置

IBM admin 3933浏览 0评论

Invision Power Board (IPB)是一个论坛程序,基于php+MySQL. 虽然国内大部分都在用discuz,但是国外ipb的用户很多,今天贴出ipb的nginx配置文件。如下

server {
access_log off;
 error_log logs/bbs.ttlsa.com-error_log warn;
listen 80;
 server_name bbs.ttlsa.com;
# static file configuration
 location ~* .(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|wml|swf)$ {
 root /data/site/bbs.ttlsa.com;
 expires max;
 add_header Pragma public;
 add_header Cache-Control "public, must-revalidate, proxy-revalidate";
 }
# site configuration
 location / {
 root /data/site/bbs.ttlsa.com;
 index index.php index.html index.htm;
# IPB configuration
 try_files $uri $uri/ /index.php?q=$uri&$args;
 }
# php-fpm configuration
 location ~ .php$ {
 root /data/site/bbs.ttlsa.com;
 try_files $uri =404;
 fastcgi_pass unix:/tmp/php5-fpm.sock;//修改成你自己的
 fastcgi_index index.php;
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 include fastcgi_params;
 fastcgi_buffer_size 128k;
 fastcgi_buffers 256 4k;
 fastcgi_busy_buffers_size 256k;
 fastcgi_temp_file_write_size 256k;
 }
}

转载请注明:爱开源 » IPB(Invision Power Board)nginx配置

您必须 登录 才能发表评论!