Godaddy 申請sslforfree 教學

教學流程

  1. go to https://sslforfree.com
  2. https://blog.johnwu.cc/article/ssl-for-free.html (choose “Manual Verification”)
  3. download file and upload to “webroot/.well-known/acme-challenge/”
  4. upload “Web.config” to webroot
  5. verify _acme-challenge.your_domain
  6. download the sslforfree.zip and unzip it
  7. login godaddy plesk
  8. select “Secure Your Sites”
  9. select “Add SSL Certificate”
  10. Enter “Certificate name” eg: abc.com, Country->Hong Kong, State or province->Hong Kong, Location(city)-> Hong Kong, Organization name(company)->Your company Name
  11. upload privete key from sslforfree.zip
  12. upload certificate from sslforfree.zip
  13. upload ca certificate from sslforfree.zip
  14. click “Send Files”
  15. back to plesk main board
  16. select “Hosting Settings”
  17. enable “SSL support”
  18. click the “OK”

Web.config

<configuration>
  <!-- ... -->
  <system.webServer>
    <!-- ... -->
    <staticContent>
      <!-- ... -->
      <mimeMap fileExtension="." mimeType="text/plain" />
    </staticContent>
	
	<rewrite>
		<rules>
			<rule name="HTTP to HTTPS redirect" stopProcessing="true"> 
				<match url="(.*)" /> 
				<conditions> 
					<add input="{HTTPS}" pattern="off" ignoreCase="true" />
				</conditions> 
				<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
			</rule>   
		</rules>
	</rewrite>
  </system.webServer>
</configuration>

開始在上面輸入您的搜索詞,然後按回車進行搜索。按ESC取消。

返回頂部