Nginx http轉發 https

server {
        listen      192.168.0.248:8097 ssl;
        server_name  localhost;
		
        ssl_certificate      4112513_shsp.kingyi.net.pem;
        ssl_certificate_key  4112513_shsp.kingyi.net.key;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

		location / {
			proxy_set_header Host $Host;
            proxy_set_header X-Forward-For $remote_addr;
            proxy_pass http://192.168.0.75:9521;     
		
        }
		
		location /interface {
			proxy_set_header Host $Host;
            proxy_set_header X-Forward-For $remote_addr;
            proxy_pass http://192.168.0.248:8762/;     
        }

        #location /vueph {
        #    root   html/;
        #    index  index.html index.htm;
        #}

        #error_page  404              /404.html;
        # redirect server error pages to the static page /50x.html
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        } 
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章