Laoxue virtual host can configure SSL certificate

888u

Last update at :2024-01-01,Edit by888u

At present, relatively few shared IP virtual hosts support SSL certificates. Today, this site will share with you that an old Chinese hosting provider, Lao Xue Host, supports SSL certificates. Of course, it’s good for a small blog to give it a try and experience it. It just so happens that this website still has an idle Lao Xue Hong Kong host. It can be said that it has been idle for more than a year, so it’s just a good idea to give it a try.

Lao Xue virtual host discount code:

First-time discount code of 25% off for Lao Xue Host: 7vps, only for first-time payment.

Lao Xue host has a permanent discount code of 15% off the entire site: 7vps-1. The first payment and renewal are the same.

The following is the whole process of this website. The premise is that you must prepare the SSL certificate that you have applied for!

1. Add domain name and create FTP

Enter cPanel hosting panel -> Additional domains -> Fill in your domain name and create FTP, as shown below.

Here is www.thissite.com as an example. Please change it to your own domain name in the actual configuration

Note: The default for subdomains is www, which may cause errors, so it is recommended to modify it. For example, this site uses this site com

After filling in all the information, click Add Domain to see the following information

The above work is considered completed. Next comes domain name resolution and certificate preparation!

2. Server IP acquisition and domain name resolution

There is server information on the right side of the cPanel panel. Get the IP address of the server, and then go to the domain name registrar to add domain name resolution, as shown in the screenshot below.

Click on the server information to see the relevant information of the server, as shown below

After finding the IP, the next step is to resolve the domain name. Hey, I won’t explain it in detail here! If you don’t know about domain name resolution, you can ask your domain name registrar!

3. SSL certificate installation

I won’t go into too much detail about the SSL certificate application here, but Lao Xue’s host needs to choose a certificate for the Apache environment and download it as required; if it is a paid SSL certificate, you can ask the merchant to obtain it. Here you need .key and public.pem, chain.pem. If you don’t know, it is recommended to choose paid SSL. They will usually help answer or directly Help with the arrangements.

Go to the cPanel panel -> Security -> SSL/TLS and enter the management. Select the www.thissite.com created before as domain; fill in the contents of public.pem there in Certificate: (CRT). For the private key (KEY), fill in the contents of .key. Certificate authority package: (CABUNDLE) fill in chain.pem, all three are indispensable, and finally install the certificate.

4. 301 Redirect

If there are no problems after setting up the test, if you want to automatically jump to HTTPS (443) when accessing HTTP (80), edit the .htaccess file in your site directory and add it in the appropriate Location and add the following redirect rules. If there is no .htaccess file, create it locally and copy the following content to upload.

RewriteEngine on
RewriteBase/
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

This completes all the operation processes. It is simple. If you want to experience it, you can give it a try! To find out whether the virtual host you are using supports it, you can ask the provider of the virtual host you are using.

Recommended site searches: private server rental, Korean virtual host foreign server rental price, Taiwan server, free virtual host, free proxy IP address, Chinese domain name registration query, domain name registration query foreign virtual space, Japanese server website,

Laoxue virtual host can configure SSL certificate

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码