Problem in SSL dynamic content proxying from nginx to apache

Hi, I’ve got the following problem

I have apache2+php backend server serving both static and dynamic pages
and nginx+fastcgi frontent server also serving both static and dynamic
pages
there are some location which the nginx server proxies to apache2
server.
For non SSL connections all proxying both dynamic and static works fine.
But for SSL connections only static pages are proxied correctly, and for
dynamic
pages it takes server minutes to load a page or it fails completly.

I’ve verified that both apache & nginx server same ssl sipher suite.

Here is my proxy config:

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;

I’m wondering if i also need to pass some SSL headers too
with proxy_pass_header?

Or the problem might be somewhere else?

Thanks
Alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs