cloud.tencent.com
is used as an example.Apache/2.4.53
version is used as an example. The default port is 80
. You can download it from the Apache official website. If you need to use another version, contact us.443
on the Apache server so that HTTPS can be enabled after the certificate is installed. For more information, see How Do I Enable Port 443 for a VM?.Name | Description |
Server IP address | IP address of the server, which is used to connect the PC to the server. |
Username | The username used to log in to the server. |
Password | The password used to log in to the server. |
cloud.tencent.com
certificate file package to the local directory.
After decompression, you can get the certificate file of the corresponding type, which includes the cloud.tencent.com_apache
file.cloud.tencent.com_apache
root_bundle.crt
: certificate filecloud.tencent.com.crt
: certificate filecloud.tencent.com.key
: Private key filecloud.tencent.com.csr
: CSR fileroot_bundle.crt
certificate file, cloud.tencent.com.crt
certificate file, and cloud.tencent.com.key
private key file from the local directory to the ssl.crt
and ssl.key
folders under the \\conf
directory of the Apache server, respectively.SSL Certificate File | Folder |
root_bundle.crt | ssl.crt |
| cloud.tencent.com.crt |
cloud.tencent.com.key | ssl.key |
httpd.conf
file in the conf
directory of the Apache server with a text editor and delete the #
before the following fields.#LoadModule ssl_module modules/mod_ssl.so#Include conf/extra/httpd-ssl.conf
httpd-ssl.conf
file in the conf\\extra
directory of the Apache server with a text editor.httpd-ssl.conf
file and set the following field parameters to the paths of the uploaded certificate files as shown below:SSLCertificateFile "C:/apache/conf/ssl.crt/cloud.tencent.com.crt"SSLCertificateKeyFile "C:/apache/conf/ssl.key/cloud.tencent.com.key"SSLCACertificateFile "C:/apache/conf/ssl.crt/root_bundle.crt"
https://cloud.tencent.com
.httpd.conf
file in the conf
directory of the Apache server with a text editor and delete the #
before the following fields.#LoadModule rewrite_module modules/mod_rewrite.so
<Directory "C:/xampp/htdocs">
field:<Directory "C:/xampp/htdocs">RewriteEngine onRewriteCond %{SERVER_PORT} !^443$RewriteRule ^(.*)?$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]</Directory>
https://www.tencentcloud.com/
(which will be automatically redirected to https://www.tencentcloud.com/
) and https://www.tencentcloud.com/
.
Was this page helpful?