Page Discussion History


Revision as of 06:24, 13 June 2011 by Dandv (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Here is a basic configuration file, which works great as of MyBB 1.6.3.

server {
    server_name quantifiedselfforum.com;
    access_log logs/qsforum.access;
    error_log logs/qsforum.error error;
    root /var/www/qsforum;
    location / {
        index index.php;
    # Deny access to internal files.
    location ~ /(inc|uploads/avatars) {
        deny all;
    # Pass the php scripts to fastcgi server
    location ~ \.php$ {
        fastcgi_pass unix:/tmp/php.socket;
        # Necessary for php.
        fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        # Unmodified fastcgi_params from nginx distribution.
        include fastcgi_params;

See PHPFcgiExample for details on creating the UNIX socket and this forum post on enabling human-understandable (aka SEO-friendly or human-readable) URLs using the Google SEO plugin.