Next, the author closed the original default site and got used to using one config for each site. Linux security settings and Apache2 certificate replacement Modify the certificate storage location in /etc/apache2/sites-available/default-ssl.conf. Linux security settings and Apache2 certificate replacement Or modify the coverage to this place. this folder in /etc/apache2/ssl to facilitate the management of the credential information used by apache2.
For the configuration file in /etc/apache2/sites-available/, use a2ensite to enable its configuration file. 000-default.conf is enabled by default. The author canada dataset turns on the default-ssl conf. Linux security settings and Apache2 certificate replacement After enabling it, you can see the newly enabled site configuration file in /etc/apache2/sites-enabled/, and you can use https to open the website.
You can add the certificate storage location in the configuration file as follows: Linux security settings and Apache2 certificate replacement Once again, after modifying the apache2 configuration file, the system will remind you to Reload. Sometimes, when exceptions that cannot be executed normally occur, we will restart the service. Linux security settings and Apache2 certificate replacement ※Remarks: