Permalink
Browse files

nginx

  • Loading branch information...
1 parent 0713293 commit 917742247631c6de7d42cfb8e4ce81995d86e247 @smondal committed Jun 3, 2012
Showing with 32 additions and 3 deletions.
  1. +7 −0 general
  2. +21 −3 nginx
  3. +4 −0 ubuntu error list
View
@@ -61,3 +61,10 @@ A. dpkg --get-selections | grep softwarename
Q. How to dns chane
A. open /etc/sysclt.conf and unconnent the following line
kernel.domainname = sandip.com
+
+Q. How to domain name change
+A. Open /ets/hosts file and change the file
+ 127.0.0.1 localhost sandipdomain
+ 0.22.108.157 sandip
+ 0.22.108.157 sandip.com
+
View
24 nginx
@@ -205,7 +205,7 @@ http {
## Size Limits
- # client_body_buffer_size 100k;
+ # client_body_buffer_size 5k;
# client_header_buffer_size 50k;
client_max_body_size 555M;
# large_client_header_buffers 1 1k;
@@ -345,7 +345,7 @@ http {
#ssl_prefer_server_ciphers on;
location / {
- proxy_pass http://localhost:3000;
+ proxy_pass http://sandipdomain:8085/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -361,6 +361,24 @@ http {
}
-
+
+
+Nginx component value description
+=============================================================================================================
+client_body_buffer_size 5k client_body_buffer_size If the request body is more than
+ the buffer, then the entire request body or some part is
+ written in a temporary file
+
+
+client_header_buffer_size 1k is the limit on the size of all of the http headers the
+ client can send to the server. For the overwhelming majority
+ of requests a buffer size of 1K is sufficient. The only time
+ you would need to increase this is if you have a custom header
+ or a large cookie sent from the client.
+
+client_max_body_size 4M Depend on your body, If you body cantain more file then increase
+ it.
+large_client_header_buffers 4 4k/8k;
+
View
@@ -27,3 +27,7 @@ LoadError: no such file to load -- mylibrary
from /home/user/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
A. I have changed the ruby file to 1.8.7
+
+
+Q. Mongrel installation ERROR: Failed to build gem native extension.
+A. rvm 1.9.2 gem install mongrel --pre

0 comments on commit 9177422

Please sign in to comment.