Invision Power Board (IPB) is a forum program based on Php+mysql. Although most of the domestic use of discuz, but a lot of foreign IPB users, today posted IPB nginx configuration file. The configuration is as follows:
Copy Code code as follows:
server {
Access_log off;
Error_log Logs/bbs.jb51.net-error_log warn;
Listen 80;
server_name bbs.jb51.net;
# 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.jb51.net;
Expires Max;
Add_header Pragma public;
Add_header Cache-control "Public, must-revalidate, proxy-revalidate";
}
# Site Configuration
Location/{
Root/data/site/bbs.jb51.net;
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.jb51.net;
Try_files $uri = 404;
Fastcgi_pass unix:/tmp/php5-fpm.sock;//modified into your own
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 noun Explanation:
IPB Forum is called Invision Power Board (abbreviated IPB or Ip.board), is one of the world's most famous forum programs, by the Php+mysql architecture, so you effortlessly create, manage and promote your online forum, advanced Intuitive, Features such as multiple states allow you to focus on developing your forum rather than being bothered by complex settings.