Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to use nginx to host review board site
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Zhu  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 10:49 pm
From: Michael Zhu <linuxsir...@gmail.com>
Date: Tue, 21 Aug 2012 10:49:10 +0800
Local: Mon, Aug 20 2012 10:49 pm
Subject: how to use nginx to host review board site

Dear all,

I want to setup reviewboard using nginx. please help me.
thank you all.
B.R.

Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Hammond  
View profile  
 More options Aug 21 2012, 12:02 am
From: Christian Hammond <chip...@chipx86.com>
Date: Mon, 20 Aug 2012 21:02:10 -0700
Local: Tues, Aug 21 2012 12:02 am
Subject: Re: how to use nginx to host review board site

Hi Michael,

Here's a configuration you can base yours off of:

upstream reviews {
    server 127.0.0.1:6081;

}

server {
    listen 80;
    server_name reviews.reviewboard.org reviews.review-board.org;
    access_log /var/www/reviews.reviewboard.org/logs/nginx_access_log;
    error_log /var/www/reviews.reviewboard.org/logs/nginx_error_log;

    location / {
        proxy_pass http://reviews;
        proxy_redirect              off;
        proxy_set_header            Host $host;
        proxy_set_header            X-Real-IP $remote_addr;
        proxy_set_header            X-Forwarded-For
$proxy_add_x_forwarded_for;
        client_max_body_size        10m;
        client_body_buffer_size     128k;
        proxy_connect_timeout       90;
        proxy_send_timeout          90;
        proxy_read_timeout          90;
        proxy_buffer_size           4k;
        proxy_buffers               4 32k;
        proxy_busy_buffers_size     64k;
        proxy_temp_file_write_size  64k;
    }

    location /media/ {
        alias /var/www/reviews.reviewboard.org/htdocs/media/;

        if ($query_string) {
            expires max;
        }
    }

    location /static/ {
        alias /var/www/reviews.reviewboard.org/htdocs/static/;

        if ($query_string) {
            expires max;
        }
    }

    location /errordocs/ {
        alias /var/www/reviews.reviewboard.org/htdocs/errordocs/;
        expires 30d;
    }

}

Christian

--
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Zhu  
View profile  
 More options Sep 5 2012, 10:28 am
From: Michael Zhu <linuxsir...@gmail.com>
Date: Wed, 5 Sep 2012 22:28:47 +0800
Local: Wed, Sep 5 2012 10:28 am
Subject: Re: how to use nginx to host review board site

Dear Christian,

I setup refer to this link
http://www.rramsden.ca/blog/2011/09/26/nginx-reviewboard/.
My configuration is below:
server {
    listen 80;
    server_name review.mysite.com;
    root /var/www/review.mysite.com/htdocs/;

    location /media  {
      root /var/www/review.mysite.com/htdocs/;
    }

    location /errordoc {
     root /var/www/review.mysite.com/htdocs/;
    }

    location / {
      # host and port to fastcgi server
      fastcgi_pass 127.0.0.1:3033;
      fastcgi_param PATH_INFO $fastcgi_script_name;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;
      fastcgi_pass_header Authorization;
      fastcgi_intercept_errors off;
    }

}

But there is a strange problem. No error is reported on web on uploading
attachment/screenshot.
But in fact, no file is uploaded to media directory. If I place the file at
the right place under media
directory, it can not download from web.

Please help me.
Thanks!

Michael

On Tue, Aug 21, 2012 at 12:02 PM, Christian Hammond <chip...@chipx86.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »