Using Nginx as proxy content are "striped"

tbaror nginx-forum at forum.nginx.org
Wed Oct 19 12:04:21 UTC 2016


Hello All,

I am using Nginx for proxy to OpenGrok server using following conf below ,
the issue i have is that the proxy works but seems to be missing content and
not works as expected.
Any idea how to make it work better?
Please advise
Thanks


server {
    listen 80;
    return 301 https://$host$request_uri;
}

server {

    listen 443;
    server_name gfn-docker.daet.local;

    ssl_certificate           /etc/nginx/cert.crt;
    ssl_certificate_key       /etc/nginx/cert.key;

    ssl on;
    ssl_session_cache  shared:SSL:30m;
    ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;

    access_log            /var/log/nginx/jenkins.access.log;

    location / {
	  auth_basic "Restricted Content";
      auth_basic_user_file /etc/nginx/.htpasswd;	
      proxy_pass http://192.168.1.100:38080/;
      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;
      proxy_max_temp_file_size 0;
      client_max_body_size 30m;
      client_body_buffer_size 512k;
      proxy_connect_timeout 90;
      proxy_send_timeout 90;
      proxy_read_timeout 90;
      proxy_buffer_size 12k;
      proxy_buffers 4 64k;
      proxy_busy_buffers_size 128k;
      proxy_temp_file_write_size 128k;
    }
  }

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270422,270422#msg-270422



More information about the nginx mailing list