欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

windows下用nginx配置https服務器

步驟一 下載安裝包

成都創(chuàng)新互聯(lián)服務項目包括敦化網(wǎng)站建設、敦化網(wǎng)站制作、敦化網(wǎng)頁制作以及敦化網(wǎng)絡營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關系等,向廣大中小型企業(yè)、政府機構等提供互聯(lián)網(wǎng)行業(yè)的解決方案,敦化網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟效益。目前,我們服務的客戶以成都為中心已經(jīng)輻射到敦化省份的部分城市,未來相信會繼續(xù)擴大服務區(qū)域并繼續(xù)獲得客戶的支持與信任!

????http://nginx.org/en/download.html , 下載nginx-1.16.1.zip


????在控制臺cmd中進入解壓目錄運行指令 start nginx


????http://slproweb.com/products/Win32OpenSSL.html????下載OpenSSL工具生成證書

步驟二 創(chuàng)建SSL證書

????http://slproweb.com/products/Win32OpenSSL.html 下載OpenSSL?

? ? 創(chuàng)建私鑰????openssl genrsa? -out server.key 2048?

????創(chuàng)建csr證書????openssl req -new -key server.key -out server.csr


????生成crt證書????openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

步驟三 配置nginx下的nginx.conf配置文件
??? server {
??????? listen?????? 80?? ssl;#配置ssl加密
??????? server_name? localhost;
??
??????? ssl_certificate????? F:/example/cpp-httplib-build/nginx-1.16.1/server.crt;? # 這個是證書的crt文件所在目錄
??????? ssl_certificate_key? F:/example/cpp-httplib-build/nginx-1.16.1/server.key;? # 這個是證書key文件所在目錄

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

??ssl_ciphers? HIGH:!aNULL:!MD5;
??ssl_prefer_server_ciphers? on;
??
??????? #charset koi8-r;

??????? #access_log? logs/host.access.log? main;

??????? location / {
??????????? 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;
??????? }

??????? # proxy the PHP scripts to Apache listening on 127.0.0.1:80
??????? #
??????? #location ~ \.php$ {
??????? #??? proxy_pass?? http://127.0.0.1;
??????? #}

??????? # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
??????? #
??????? #location ~ \.php$ {
??????? #??? root?????????? html;
??????? #??? fastcgi_pass?? 127.0.0.1:9000;
??????? #??? fastcgi_index? index.php;
??????? #??? fastcgi_param? SCRIPT_FILENAME? /scripts$fastcgi_script_name;
??????? #??? include??????? fastcgi_params;
??????? #}

??????? # deny access to .htaccess files, if Apache's document root
??????? # concurs with nginx's one
??????? #
??????? #location ~ /\.ht {
??????? #??? deny? all;
??????? #}
??? }

步驟四重啟服務

????nginx -s reload

步驟五配置host文件C:\Windows\System32\drivers\etc 路徑下
????127.0.0.1????????? mynginx.cn? #需要配置的域名

分享標題:windows下用nginx配置https服務器
網(wǎng)址分享:http://www.chinadenli.net/article36/jdhcpg.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供ChatGPT網(wǎng)站改版移動網(wǎng)站建設靜態(tài)網(wǎng)站軟件開發(fā)云服務器

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名