Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Reverse Proxy with multiple SSL servers

$
0
0
Well... i've type again my severblock file and it's look like it's work now (i don't really understand it's about 10 times i did it ???)

for information and help other peoples, these are my serverblock files :

------ WORDPRESS ------
server {
listen 80;
server_name wordpress.mydomain.fr;

access_log /var/log/nginx/wordpress-access.log;
error_log /var/log/nginx/wordpress-error.log;

location / {
proxy_pass http://192.168.1.10;
}
}

------ ZIMBRA ------
server {
listen 443;
server_name zimbra.mydomain.fr;

access_log /var/log/nginx/zimbra-access.log;
error_log /var/log/nginx/zimbra-error.log;

ssl on;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
ssl_certificate /etc/nginx/ssl/zimbra.crt;
ssl_certificate_key /etc/nginx/ssl/zimbra.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

location / {
proxy_pass https://192.168.1.15;
}
}

------ ZPUSH ------
server {
listen 443;
server_name zpush.mydomain.fr;

access_log /var/log/nginx/push-access.log;
error_log /var/log/nginx/push-error.log;

ssl on;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
ssl_certificate /etc/nginx/ssl/zpush.crt;
ssl_certificate_key /etc/nginx/ssl/zpush.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

location / {
proxy_pass https://192.168.1.16;
}
}

------ OWNCLOUD ------
server {
listen 443;
server_name cloud.mydomain.fr;

access_log /var/log/nginx/cloud-access.log;
error_log /var/log/nginx/cloud-error.log;

ssl on;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
ssl_certificate /etc/nginx/ssl/cloud.crt;
ssl_certificate_key /etc/nginx/ssl/cloud.key;
ssl_session_cache shared:SSL:10m;

location / {
proxy_pass https://192.168.1.17;
}
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>