Skip to:
Content
Pages
Categories
Search
Top
Bottom

mu+bbpress on nginx

  • Hello Friends,

    I am trying to get mu+bbpress working on nginx. is anyone there tried this.

    I am not able to get it working tried most of hack. getting redirect loop.

Viewing 1 replies (of 1 total)
  • Dear Friends,

    I have found solution to configure nginx in root with sub domain feature. enjoy.

    server {

    listen 80;

    server_name domain.com;

    #error log

    access_log /home/public_html/private/log/access.log;

    error_log /home/public_html/private/log/error.log;

    location ~* ^.+.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$

    {

    root /home/public_html/folder;

    rewrite ^/.*(/wp-.*/.*.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;

    rewrite ^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ /wp-content/blogs.php?file=$1 last;

    expires 30d;

    break;

    }

    location / {

    root /home/public_html/folder;

    index index.php index.html;

    if (!-e $request_filename) {

    rewrite ^.+/?(/wp-.*) $1 last;

    rewrite ^.+/?(/.*.php)$ $1 last;

    rewrite ^(.+)$ /index.php?q=$1 last;

    }

    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

    #

    location ~ .php$ {

    fastcgi_pass 127.0.0.1:9000;

    fastcgi_index index.php;

    include /usr/local/nginx/conf/fastcgi_params;

    fastcgi_param SCRIPT_FILENAME /home/public_html/folder/$fastcgi_script_name;

    include /usr/local/nginx/conf/fastcgi_params;

    }

    }

    server {

    server_name http://www.domain.com;

    rewrite ^/(.*) http://domain.com/$1 permanent;

    }

Viewing 1 replies (of 1 total)
  • The topic ‘mu+bbpress on nginx’ is closed to new replies.
Skip to toolbar