{"id":29934,"date":"2025-04-20T14:16:12","date_gmt":"2025-04-20T06:16:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/29934.html"},"modified":"2025-04-20T14:16:12","modified_gmt":"2025-04-20T06:16:12","slug":"%e8%8f%9c%e9%b8%9f%e5%86%99%e7%9a%84web%e6%95%99%e7%a8%8b%e5%9c%a8-linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e4%b8%ba-apache-%e9%83%a8%e7%bd%b2-ssl-%e8%af%81%e4%b9%a6%e5%b9%b6%e9%85%8d%e7%bd%ae-htt","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/29934.html","title":{"rendered":"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u524d\u63d0\u6761\u4ef6<\/li>\n<li>\u6b65\u9aa4 1&#xff1a;\u7533\u8bf7 SSL \u8bc1\u4e66\u5e76\u4e0b\u8f7d\u6587\u4ef6<\/li>\n<li>\u6b65\u9aa4 2&#xff1a;\u4e0a\u4f20\u8bc1\u4e66\u6587\u4ef6\u5230\u670d\u52a1\u5668<\/li>\n<li>\u6b65\u9aa4 3&#xff1a;\u914d\u7f6e Apache \u4f7f\u7528 SSL \u8bc1\u4e66<\/li>\n<li>\u6b65\u9aa4 4&#xff1a;\u542f\u7528 SSL \u6a21\u5757\u5e76\u542f\u7528\u7ad9\u70b9\u914d\u7f6e<\/li>\n<li>\u6b65\u9aa4 5&#xff1a;\u91cd\u542f Apache<\/li>\n<li>\u6b65\u9aa4 6&#xff1a;\u68c0\u67e5 SSL \u8bc1\u4e66\u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/li>\n<li>\u6b65\u9aa4 7&#xff1a;\u914d\u7f6e HTTP \u81ea\u52a8\u91cd\u5b9a\u5411\u5230 HTTPS&#xff08;\u53ef\u9009&#xff09;<\/li>\n<li>\u6b65\u9aa4 8&#xff1a;\u542f\u7528 HSTS&#xff08;\u53ef\u9009&#xff09;<\/li>\n<li>\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/li>\n<li>\u5b8c\u6210<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<ul>\n<li>\u4e00\u53f0\u5df2\u90e8\u7f72\u597d\u7f51\u7ad9\u7684 Linux \u670d\u52a1\u5668&#xff08;\u4f8b\u5982 Ubuntu\u3001CentOS&#xff09;\u3002-\u4e3b\u9875\u6709\u8bfe\u7a0b<\/li>\n<li>\u5df2\u5b89\u88c5\u5e76\u914d\u7f6e Apache \u670d\u52a1\u5668\u3002-\u4e3b\u9875\u6709\u8bfe\u7a0b<\/li>\n<li>\u5df2\u7533\u8bf7\u7684 SSL \u8bc1\u4e66&#xff08;\u53ef\u4ee5\u662f\u963f\u91cc\u4e91\u6216\u5176\u4ed6\u63d0\u4f9b\u5546\u7684\u514d\u8d39\/\u4ed8\u8d39 SSL \u8bc1\u4e66&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u6b65\u9aa4 1&#xff1a;\u7533\u8bf7 SSL \u8bc1\u4e66\u5e76\u4e0b\u8f7d\u6587\u4ef6<\/h3>\n<li>\u7533\u8bf7\u8bc1\u4e66&#xff1a;\u5728 SSL \u8bc1\u4e66\u670d\u52a1\u63d0\u4f9b\u5546&#xff08;\u4f8b\u5982\u963f\u91cc\u4e91&#xff09;\u7533\u8bf7 SSL \u8bc1\u4e66&#xff0c;\u786e\u4fdd\u586b\u5199\u7684\u57df\u540d\u6b63\u786e&#xff0c;\u5982 www.example.com \u6216 *.example.com\u3002 \u5728\u963f\u91cc\u4e91\u7684\u6570\u5b57\u8bc1\u4e66\u7ba1\u7406\u670d\u52a1\u4e2d&#xff0c;\u70b9\u51fbSSL\u8bc1\u4e66\u7ba1\u7406&#xff0c;\u5728\u4e2a\u4eba\u6d4b\u8bd5\u8bc1\u4e66\u4e2d\u70b9\u51fb\u521b\u5efa\u8bc1\u4e66&#xff0c;\u6309\u7167\u63d0\u793a\u586b\u5199\u4fe1\u606f&#xff0c;\u5305\u62ec\u57df\u540d\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061609-68049129194ab.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u4e0b\u8f7d\u8bc1\u4e66&#xff1a;\u4e0b\u8f7d Apache \u683c\u5f0f\u7684\u8bc1\u4e66\u6587\u4ef6&#xff0c;\u89e3\u538b\u540e\u4f1a\u5f97\u5230\u4ee5\u4e0b\u4e09\u4e2a\u6587\u4ef6&#xff1a;\n<ul>\n<li>example.key&#xff08;\u79c1\u94a5\u6587\u4ef6&#xff09;<\/li>\n<li>example.crt&#xff08;\u8bc1\u4e66\u6587\u4ef6&#xff09;<\/li>\n<li>example_chain.crt&#xff08;\u8bc1\u4e66\u94fe\u6587\u4ef6&#xff09; \u5728\u4e2a\u4eba\u6d4b\u8bd5\u8bc1\u4e66\u4e2d\u627e\u5230\u8981\u90e8\u7f72\u7684\u8bc1\u4e66&#xff0c;\u70b9\u51fb\u540e\u9762\u7684\u66f4\u591a\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061609-680491295f1e0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5982\u4e0b\u56fe&#xff0c;\u70b9\u51fb\u4e0b\u8f7d&#xff0c;\u627e\u5230Apache\u540e\u9762\u7684\u4e0b\u8f7d&#xff0c;\u4e0b\u8f7d\u540e\u538b\u7f29\u5305\u4e2d\u5305\u62ec&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<ul>\n<li>*.key<\/li>\n<li>*_chain.crt<\/li>\n<li>*_public.crt <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061609-68049129e9946.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h3>\u6b65\u9aa4 2&#xff1a;\u4e0a\u4f20\u8bc1\u4e66\u6587\u4ef6\u5230\u670d\u52a1\u5668<\/h3>\n<li>\u5c06\u89e3\u538b\u540e\u7684\u8bc1\u4e66\u6587\u4ef6\u901a\u8fc7 scp \u6216 FTP \u7b49\u65b9\u5f0f\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff0c;\u5b58\u653e\u5728\u4e00\u4e2a\u5b89\u5168\u76ee\u5f55&#xff0c;\u4f8b\u5982 \/etc\/httpd\/cert\/\u3002\u8fd9\u4e2a\u5730\u5740\u4e13\u95e8\u7528\u6765\u5b58\u653eSSL\u8bc1\u4e66&#xff0c;\u53ef\u4ee5\u8bb0\u4e0b\u6765\u3002 \u8fd9\u91cc\u53ef\u4ee5\u4f7f\u7528FileZilla\u8f6f\u4ef6\u4e0e\u670d\u52a1\u5668\u6587\u4ef6\u8fdb\u884c\u4ea4\u4e92\u64cd\u4f5c&#xff0c;\u6bd4\u8f83\u65b9\u4fbf&#xff0c;\u5177\u4f53\u64cd\u4f5c\u65b9\u6cd5\u53ef\u4ee5\u641c\u4e00\u4e0b&#xff0c;\u975e\u5e38\u7b80\u5355\u3002<\/li>\n<li>\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650&#xff0c;\u4fdd\u62a4\u79c1\u94a5\u6587\u4ef6\u7684\u5b89\u5168&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">644<\/span> \/etc\/httpd\/cert\/example.crt \/etc\/httpd\/cert\/example_chain.crt<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> \/etc\/httpd\/cert\/example.key\n <\/li>\n<h3>\u6b65\u9aa4 3&#xff1a;\u914d\u7f6e Apache \u4f7f\u7528 SSL \u8bc1\u4e66<\/h3>\n<li>\u6253\u5f00 Apache \u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6&#xff0c;\u901a\u5e38\u5728 \/etc\/apache2\/sites-available\/ \u6216 \/etc\/httpd\/conf.d\/ \u4e0b\u3002\u4f8b\u5982&#xff0c;\u7f16\u8f91 example.conf&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/apache2\/sites-available\/example.conf<br \/>\n \u5982\u679c\u76ee\u5f55\u4e0b\u5b58\u5728\u591a\u4e2aconf&#xff0c;\u4e0d\u77e5\u9053\u54ea\u4e2a\u5728\u4f7f\u7528\u7684\u8bdd\u53ef\u4ee5\u67e5\u770b\u4e3b\u9875\u53e6\u4e00\u7bc7\u6587\u7ae0&#xff1a;\u300a[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5982\u4f55\u67e5\u627e\u548c\u7ba1\u7406 Apache \u670d\u52a1\u5668\u7684\u751f\u6548\u914d\u7f6e\u6587\u4ef6\u300b<\/li>\n<li>\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u6216\u4fee\u6539\u5982\u4e0b\u5185\u5bb9&#xff0c;\u914d\u7f6e HTTPS&#xff1a;&lt;VirtualHost *:443&gt;<br \/>\n    ServerAdmin webmaster&#064;example.com<br \/>\n    ServerName www.example.com&#8212;&#8211;\u81ea\u5df1\u7684\u57df\u540d<br \/>\n    ServerAlias example.com&#8212;&#8211;\u81ea\u5df1\u7684\u57df\u540d<br \/>\n    DocumentRoot \/var\/www\/html\/<\/p>\n<p>    SSLEngine on<br \/>\n    SSLCertificateFile \/etc\/httpd\/cert\/example.crt&#8212;&#8211;\u81ea\u5df1\u7684\u8def\u5f84\u548c\u6587\u4ef6<br \/>\n    SSLCertificateKeyFile \/etc\/httpd\/cert\/example.key&#8212;&#8211;\u81ea\u5df1\u7684\u8def\u5f84\u548c\u6587\u4ef6<br \/>\n    SSLCertificateChainFile \/etc\/httpd\/cert\/example_chain.crt &#8212;&#8211;\u81ea\u5df1\u7684\u8def\u5f84\u548c\u6587\u4ef6<\/p>\n<p>    &lt;Directory \/var\/www\/html\/&gt;<br \/>\n        Options Indexes FollowSymLinks<br \/>\n        AllowOverride All<br \/>\n        Require all granted<br \/>\n    &lt;\/Directory&gt;<\/p>\n<p>    ErrorLog ${APACHE_LOG_DIR}\/example_error.log<br \/>\n    CustomLog ${APACHE_LOG_DIR}\/example_access.log combined<br \/>\n&lt;\/VirtualHost&gt;\n <\/li>\n<p>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f&#xff0c;\u672c\u7cfb\u5217\u8bfe\u7a0b\u4e2d&#xff0c;\u524d\u51e0\u7bc7\u6587\u7ae0\u91cc\u9762\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u914d\u7f6e\u7684\u7aef\u53e3\u662f80&#xff0c;\u800cHTTPS\u4e00\u822c\u4f7f\u7528443\u3002\u963f\u91cc\u4e91\u670d\u52a1\u5668\u4e2d\u7684\u5b89\u5168\u7b56\u7565\u4e2d&#xff0c;\u9700\u8981\u6253\u5f00443\u7aef\u53e3\u3002<\/p>\n<h3>\u6b65\u9aa4 4&#xff1a;\u542f\u7528 SSL \u6a21\u5757\u5e76\u542f\u7528\u7ad9\u70b9\u914d\u7f6e<\/h3>\n<li>\u542f\u7528 Apache \u7684 SSL \u6a21\u5757&#xff08;\u5982\u679c\u672a\u542f\u7528&#xff09;&#xff1a;<span class=\"token function\">sudo<\/span> a2enmod ssl\n <\/li>\n<li>\u542f\u7528\u65b0\u7684\u865a\u62df\u4e3b\u673a\u914d\u7f6e&#xff1a;<span class=\"token function\">sudo<\/span> a2ensite example.conf\n <\/li>\n<h3>\u6b65\u9aa4 5&#xff1a;\u91cd\u542f Apache<\/h3>\n<p>\u91cd\u542f Apache \u670d\u52a1\u4ee5\u5e94\u7528\u65b0\u7684\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl restart apache2  <span class=\"token comment\"># Ubuntu\/Debian<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl restart httpd    <span class=\"token comment\"># CentOS\/RHEL<\/span><\/p>\n<h3>\u6b65\u9aa4 6&#xff1a;\u68c0\u67e5 SSL \u8bc1\u4e66\u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/h3>\n<li>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee https:\/\/www.example.com&#xff0c;\u9a8c\u8bc1\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u52a0\u8f7d\u3002<\/li>\n<li>\u5982\u679c\u9875\u9762\u663e\u793a\u4e3a\u201c\u4e0d\u5b89\u5168\u201d&#xff0c;\u8bf7\u68c0\u67e5\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177&#xff0c;\u662f\u5426\u5b58\u5728\u201c\u6df7\u5408\u5185\u5bb9\u201d\u8b66\u544a\u6216 SSL \u914d\u7f6e\u95ee\u9898\u3002 \u6ce8\u610f&#xff1a;\u672c\u7cfb\u5217\u8bfe\u7a0b\u524d\u671f\u4f7f\u7528\u7684\u662fwordpress\u642d\u5efa\u7f51\u7ad9&#xff0c;\u5728\u540e\u53f0\u8bbe\u7f6e\u4e2d\u6709\u5730\u5740\u548c\u7ad9\u70b9\u5730\u5740&#xff0c;\u9700\u8981\u4fee\u6539\u4e3a\u81ea\u5df1\u7684\u57df\u540d\u3002\u4e0d\u7136\u5728\u6253\u5f00\u5b50\u754c\u9762\u65f6&#xff0c;\u4f7f\u7528\u7684\u8fd8\u662fhttp\u6216\u8005\u76f4\u63a5\u8fdb\u5165IP\u5730\u5740\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061610-6804912a47cc8.png\" alt=\"\" \/><\/li>\n<h3>\u6b65\u9aa4 7&#xff1a;\u914d\u7f6e HTTP \u81ea\u52a8\u91cd\u5b9a\u5411\u5230 HTTPS&#xff08;\u53ef\u9009&#xff09;<\/h3>\n<p>\u4e3a\u63d0\u9ad8\u7f51\u7ad9\u5b89\u5168\u6027&#xff0c;\u914d\u7f6e\u5c06\u6240\u6709 HTTP \u8bf7\u6c42\u91cd\u5b9a\u5411\u5230 HTTPS&#xff1a;<\/p>\n<li>\u7f16\u8f91 Apache \u7684 80 \u7aef\u53e3\u914d\u7f6e&#xff1a;&lt;VirtualHost *:80&gt;<br \/>\n    ServerName www.example.com<br \/>\n    ServerAlias example.com<br \/>\n    Redirect permanent \/ https:\/\/www.example.com\/<br \/>\n&lt;\/VirtualHost&gt;\n <\/li>\n<li>\u4fdd\u5b58\u6587\u4ef6\u5e76\u91cd\u542f Apache \u670d\u52a1\u3002<\/li>\n<h3>\u6b65\u9aa4 8&#xff1a;\u542f\u7528 HSTS&#xff08;\u53ef\u9009&#xff09;<\/h3>\n<p>HSTS&#xff08;HTTP Strict Transport Security&#xff09;\u4f1a\u5f3a\u5236\u6d4f\u89c8\u5668\u59cb\u7ec8\u901a\u8fc7 HTTPS \u8bbf\u95ee\u7ad9\u70b9&#xff0c;\u8fdb\u4e00\u6b65\u63d0\u9ad8\u5b89\u5168\u6027&#xff1a;<\/p>\n<li>\u5728 VirtualHost *:443 \u914d\u7f6e\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c&#xff1a;Header always set Strict-Transport-Security &#034;max-age&#061;31536000; includeSubDomains&#034;\n <\/li>\n<li>\u91cd\u542f Apache \u670d\u52a1\u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/li>\n<h3>\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h3>\n<li>\u8bc1\u4e66\u4e0d\u5339\u914d\u8b66\u544a&#xff1a;\u68c0\u67e5 ServerName \u548c ServerAlias \u662f\u5426\u4e0e\u8bc1\u4e66\u4e2d\u5305\u542b\u7684\u57df\u540d\u5339\u914d\u3002<\/li>\n<li>\u6df7\u5408\u5185\u5bb9\u8b66\u544a&#xff1a;\u786e\u4fdd\u7f51\u7ad9\u52a0\u8f7d\u7684\u6240\u6709\u8d44\u6e90\u90fd\u4f7f\u7528 HTTPS\u3002<\/li>\n<li>\u7f13\u5b58\u95ee\u9898&#xff1a;\u6e05\u9664\u6d4f\u89c8\u5668\u7f13\u5b58\u6216\u4f7f\u7528\u9690\u79c1\u6a21\u5f0f\u91cd\u65b0\u8bbf\u95ee\u7f51\u7ad9\u3002<\/li>\n<h3>\u5b8c\u6210<\/h3>\n<p>\u73b0\u5728&#xff0c;\u4f60\u5df2\u7ecf\u6210\u529f\u4e3a Apache \u670d\u52a1\u5668\u914d\u7f6e\u4e86 SSL \u8bc1\u4e66&#xff0c;\u7f51\u7ad9\u5e94\u80fd\u901a\u8fc7 https \u5b89\u5168\u8bbf\u95ee&#xff01; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061610-6804912a909b5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u4e3a Apache \u670d\u52a1\u5668\u914d\u7f6e\u4e86 SSL \u8bc1\u4e66\uff0c\u7f51\u7ad9\u5e94\u80fd\u901a\u8fc7 `https` \u5b89\u5168\u8bbf\u95ee\uff01_linux apache ssl<\/p>\n","protected":false},"author":2,"featured_media":29929,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,87,43,2422],"topic":[],"class_list":["post-29934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-87","tag-43","tag-web"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/29934.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u4e3a Apache \u670d\u52a1\u5668\u914d\u7f6e\u4e86 SSL \u8bc1\u4e66\uff0c\u7f51\u7ad9\u5e94\u80fd\u901a\u8fc7 `https` \u5b89\u5168\u8bbf\u95ee\uff01_linux apache ssl\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/29934.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-20T06:16:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061609-68049129194ab.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29934.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/29934.html\",\"name\":\"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T06:16:12+00:00\",\"dateModified\":\"2025-04-20T06:16:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/29934.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/29934.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29934.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/29934.html","og_locale":"zh_CN","og_type":"article","og_title":"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u4e3a Apache \u670d\u52a1\u5668\u914d\u7f6e\u4e86 SSL \u8bc1\u4e66\uff0c\u7f51\u7ad9\u5e94\u80fd\u901a\u8fc7 `https` \u5b89\u5168\u8bbf\u95ee\uff01_linux apache ssl","og_url":"https:\/\/www.wsisp.com\/helps\/29934.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T06:16:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420061609-68049129194ab.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/29934.html","url":"https:\/\/www.wsisp.com\/helps\/29934.html","name":"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T06:16:12+00:00","dateModified":"2025-04-20T06:16:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/29934.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/29934.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/29934.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"[\u83dc\u9e1f\u5199\u7684web\u6559\u7a0b]\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4e3a Apache \u90e8\u7f72 SSL \u8bc1\u4e66\u5e76\u914d\u7f6e HTTPS"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=29934"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29934\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/29929"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=29934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=29934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=29934"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=29934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}