Example of Invision Power Board, a well-known foreign forum program, under Nginx IPB _nginx

Source: Internet
Author: User
Tags fpm

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.