Nginx

From PostgreSQL_wiki
Revision as of 20:42, 16 August 2012 by Martin (talk | contribs) (mutli ssl single IP proxy)
Jump to: navigation, search

mutli ssl single IP proxy

De nginx ssl proxy leidt het verkeer naar de secure Apache baclend.

server {
server_name  crm.webhuis.nl;
access_log  /var/log/nginx/crm.webhuis.nl.access.log;
error_log  /var/log/nginx/crm.webhuis.nl.error.log;

listen   443;
ssl_certificate  ssl/crm.webhuis.nl.cert.pem;
ssl_certificate_key  ssl/crm.webhuis.nl.key-nopw.pem;

ssl_session_timeout  5m;

ssl_protocols  SSLv3 TLSv1;
ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers   on;

ssl_session_cache  builtin:1000  shared:SSL:10m;
# Volgende optie nog uittesten, bovenstaande regel heeft het al veel beter gemaakt!
# ssl_session_cache    shared:SSL:10m;

location / {
        proxy_pass      https://crm.webhuis.nl:443;
        proxy_redirect  off;

        #Proxy Settings
        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;
        proxy_connect_timeout      90;
        proxy_send_timeout         90;
        proxy_read_timeout         90;
        proxy_buffer_size          32k;
        proxy_buffers              4 32k;
        proxy_busy_buffers_size    64k;
        proxy_temp_file_write_size 64k;

#root   /var/www/crm.webhuis.nl;
#index  index.html index.htm;
}
}

Terug naar: Webhuis configuratie