nginx反向代理走https
cat nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name hzou.i.sinotest.com;
location /test {
root html;
index index.html index.htm;
}
}
server {
listen 443 ssl;
server_name hzou.i.sinotest.com;
ssl_certificate keys/i.sinotest.com_bundle.crt;
ssl_certificate_key keys/i.sinotest.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_prefer_server_ciphers on;
location /oms {
proxy_pass https://10.7.251.xx$request_uri;
}
location /express {
proxy_pass https://10.7.251.xx$request_uri;
}
}
}