Nginx https代理?
阿新 • • 發佈:2020-10-13
IIS同IP只能安裝一個SSL證書,在不重新安裝執行環境的情況下安裝多個證書,可以使用nginx作為前端反向代理IIS。
1 .Nginx設定教程
nginx下載地址http://nginx.org/en/download.html
優化快取靜態檔案
# Feedlocation ~* \.(?:rss|atom)$ { expires 1h;
add_header Cache-Control "public";}# Media: images, icons, video, audio, HTClocation ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M;
access_log off; add_header Cache-Control "public";}# CSS and Javascriptlocation ~* \.(?:css|js)$ { expires 1y;
access_log off; add_header Cache-Control "public";}
2.需要將IIS站點埠修改成8080