SSL for Apache: Certificate Installation, TLS 1.3, HTTPS, and Troubleshooting
Step-by-step guide to enabling HTTPS on Apache: obtaining a Let’s Encrypt certificate, configuring VirtualHost and mod_ssl, securing TLS 1.3, redirects, and renewal monitoring.
Before making changes: all examples use the test domain example.ru. On a production server, you need a backup, a syntax check, and an understanding of the current website hosting setup. Never upload private keys to unknown websites.
1. Apache, SSL, and HTTPS: What Gets Configured

Apache HTTP Server is a web server that can host corporate websites, online stores, WordPress sites, information portals, and small internal applications. When people talk about installing an SSL certificate on Apache, they usually mean enabling the modern TLS protocol: it is what secures an HTTPS connection. Older SSL protocols must not be used, although the historical name remains in interfaces and documentation.
A working HTTPS setup consists of several components. The domain name must point to the right server; Apache must accept connections on port 443; and the selected virtual host needs a certificate with the appropriate names and a private key. The browser checks the trust chain, expiration dates, and names in the SAN extension, then negotiates encryption. Redirects, image and script loading, certificate renewal, and error monitoring must also work correctly.
A certificate does not replace server administration. A vulnerable WordPress site, an exposed administrative interface, outdated PHP, or incorrectly assigned permissions do not become secure just because HTTPS is enabled. That is why configuring Apache involves more than running a Certbot command: it requires checking the entire website workflow.
This article uses examples for Debian and Ubuntu with Apache 2.4 and the domain example.ru. On AlmaLinux, Rocky Linux, Fedora, containers, and commercial hosting, file paths, service names, and installation procedures differ. All examples must be adapted to the actual configuration rather than copied mechanically.
2. What to Check Before You Begin: DNS, Ports, Permissions, and Backup
First, find out where the site is actually hosted. If the domain uses a CDN, proxy, load balancer, or external WAF, the browser may establish TLS with a server other than Apache. In that case, check the certificate at the external entry point and the encryption between it and the origin server separately. Simply installing a certificate on Apache may not change what visitors see.
To issue a certificate using the common HTTP-01 method, the domain must be accessible from the internet over TCP port 80. Port 443 is needed for regular HTTPS. An A record specifies the IPv4 address; an AAAA record specifies IPv6. If the AAAA record points to an old server, some visitors may see the wrong site or an outdated certificate even when IPv4 is working correctly.
dig +short A example.ru
dig +short AAAA example.ru
curl -I http://example.ru
sudo apache2ctl -v
sudo apache2ctl -S
sudo ss -ltnp | grep -E ":(80|443)\b"On Debian/Ubuntu, the command apache2ctl -S helps identify virtual hosts and their priorities. On RHEL-based systems, you can use httpd -S. Comparing responses from an internal network and an external connection can reveal routing and firewall rule issues.
Before making changes, save the virtual host configurations, the list of enabled modules, and a backup of the site. A full copy of the /etc/apache2 directory is usually more convenient than copying a single file: directives may be located in several configuration files. Store the backup securely, especially if the configuration includes paths to private keys.
sudo cp -a /etc/apache2 /etc/apache2.backup-before-https
sudo apache2ctl -M | sort
sudo apache2ctl configtestCopying the configuration does not replace backing up the CMS database and website files. Before making changes, it is useful to record the original HTTP responses, check console access, and make sure you can restore the site through the hosting control panel or SSH.
3. Apache Modules: mod_ssl, mod_alias, mod_headers, and mod_rewrite
Apache provides TLS support through the mod_sslmodule. To enable HTTPS on Debian/Ubuntu, it is often enough to enable the ssl module and configure a virtual host on port 443. However, additional modules may be needed for redirects, security headers, and complex rules.
sudo a2enmod ssl headers
sudo apache2ctl -M | grep -E "ssl_module|headers_module|alias_module"
sudo apache2ctl configtestOn Debian-based systems, the command a2enmod enables a module, but does not always immediately reload the configuration. Restart Apache only after checking the configuration. mod_alias is usually already enabled; the rewrite module should be enabled only when actually needed, not out of habit.
Module names differ between documentation and commands: the load example shows ssl_module, while a2enmod usually uses ssl. Do not copy commands from Nginx instructions: listen 443 ssl is Nginx syntax, not Apache syntax.
4. Apache VirtualHost Structure and the Importance of ServerName
Apache selects request-handling rules through virtual hosts VirtualHost. Usually, one virtual host handles HTTP requests on port 80 and another handles HTTPS requests on port 443. For the domain example.ru , set ServerName; for an additional name, such as www.example.ru, use ServerAlias. An alias specified in the configuration does not, by itself, create a DNS record or add the name to the certificate.
On Debian/Ubuntu, configurations are often stored in /etc/apache2/sites-available and enabled using a2ensite. On other systems, virtual hosts may be located in /etc/httpd/conf.d. The location depends on how Apache was installed; there is no universal standard that applies to every system.
<VirtualHost *:80>
ServerName example.ru
ServerAlias www.example.ru
DocumentRoot /var/www/example.ru/public
ErrorLog ${APACHE_LOG_DIR}/example-error.log
CustomLog ${APACHE_LOG_DIR}/example-access.log combined
</VirtualHost>This is an example of a basic HTTP host. It does not include PHP, CMS processing, or directory access rules. The path /var/www/example.ru/public must exist, and the Apache process must have permission to read the necessary files. On a WordPress site, you cannot replace the working configuration with this minimal snippet without checking the PHP settings and Directory.
In a Debian-like environment, the configuration can be saved as /etc/apache2/sites-available/example.ru.conf, then enabled and checked. You should not keep multiple competing virtual hosts with the same names and ports without understanding the selection order: Apache may serve a different certificate than expected.
sudo a2ensite example.ru.conf
sudo apache2ctl configtest
sudo systemctl reload apache2Before the certificate is issued, it is important to make sure that http://example.ru shows the correct site without errors. If HTTP is not working, certificate issuance via HTTP-01 is also very likely to fail.
5. Let’s Encrypt and Certbot: Issuing a Certificate for Apache

Let’s Encrypt is a public certificate authority that issues certificates for domains after verifying control over them. Certbot is an ACME client that can verify domain ownership, save the certificate, and configure Apache. The --apache plugin can automatically modify the virtual host configuration and set up HTTPS.
The Certbot installation method depends on the operating system. Official instructions for some Linux systems use Snap, while package repositories may provide Certbot and the python3-certbot-apacheplugin. The most important thing is to choose one managed installation method, know where the executable is located, and make sure client updates do not conflict.
sudo apt update
sudo apt install certbot python3-certbot-apache
certbot --versionThe commands above are an example for a system with the corresponding packages. Installing via Snap may be preferable on some distributions; before choosing, check the recommended method using the official Certbot wizard.
After checking DNS and the Apache configuration, you can issue the certificate. The name www.example.ru is included only if such an address exists and has a correct DNS record. Do not request a certificate for unused names: a validation error for one name can prevent issuance for the entire requested group.
sudo certbot --apache -d example.ru -d www.example.ruCertbot may offer redirect configuration options and modify the configuration. After it finishes, check not only the success message but also the resulting web server: the certificate, accessibility of the main site, resource loading, and operation of all actual domain names. Administrator privileges are required on the server; public web forms and third-party sites must not request the private key.
6. HTTP-01 and DNS-01 Domain Ownership Checks
To issue a certificate, the certificate authority verifies control over the address. For a typical public web server, HTTP-01 is most often suitable: the ACME client places a special file that the certificate authority attempts to retrieve over HTTP on port 80. If the response does not match what is expected or the request reaches a different server, validation will fail.
You cannot move HTTP-01 to an arbitrary port by specifying it in the Certbot settings. If the server is not accessible on port 80, use another verified method, such as DNS-01. This involves creating a TXT record in DNS. DNS-01 is also required to issue a Wildcard certificate of the form *.example.ru, because HTTP-01 is not suitable for validating this pattern.
If a domain is served by multiple nodes, validation must work regardless of which node the certificate authority’s request reaches. In an infrastructure with a CDN and load balancer, clarify exactly where ACME validation takes place. For DNS-01, automation through the DNS provider’s API with the minimum permissions necessary is preferable to manually creating a TXT record for every renewal.
Users often try to fix a validation error by turning off HTTPS or temporarily disabling all security. This is not required by default. It is better to check external access to the challenge URL, the web root location, redirect rules, and which node is actually responding for the domain.
7. Manual HTTPS VirtualHost Configuration: Certificate and Key
Automatic configuration changes are not always convenient. On servers with a non-standard structure, multiple applications, or a separate certificate issuance process, it is safer to obtain the certificate without installing it and then connect it to the appropriate virtual host manually. The main thing is not to copy keys into a publicly accessible website directory or mix up the certificate and private key files.
A typical Let’s Encrypt installation uses the files fullchain.pem and privkey.pem. The first contains the site certificate and intermediate chain; the second contains the private key. In modern Apache 2.4, intermediate certificates are usually supplied through SSLCertificateFile; the older, separate directive SSLCertificateChainFile is deprecated for standard scenarios.
<VirtualHost *:443>
ServerName example.ru
ServerAlias www.example.ru
DocumentRoot /var/www/example.ru/public
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.ru/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.ru/privkey.pem
SSLProtocol -all +TLSv1.2 +TLSv1.3
ErrorLog ${APACHE_LOG_DIR}/example-ssl-error.log
CustomLog ${APACHE_LOG_DIR}/example-ssl-access.log combined
</VirtualHost>The paths in this example refer to the common Certbot structure, but the actual certificate directory name may differ from the domain. The presence of ServerAlias does not guarantee that this name is covered by the certificate. In addition, the configuration assumes Apache and OpenSSL with TLS 1.3 support; on incompatible builds, validation will detect an error and the settings must be adapted.
The line SSLProtocol -all +TLSv1.2 +TLSv1.3 expresses the intention to allow only modern TLS versions, but the configuration details should be checked against the global settings, OpenSSL versions, and client requirements. If there is a central security template, it is better not to create a conflicting copy of the settings for each site.
8. How to Enable a Site and Check the Apache Configuration
After adding an HTTPS virtual host, check the syntax, certificate file accessibility, and name correctness. On Debian/Ubuntu, the command apache2ctl configtestis available; when the syntax is valid, it usually returns Syntax OK. This is an important but not conclusive test: the syntax may be correct, while the domain still points to a different server.
sudo apache2ctl configtest
sudo apache2ctl -S
sudo systemctl reload apache2
curl -I https://example.ruRun reload only if configtestsucceeds. Reloading the configuration is preferable to a full restart to reduce the risk of temporary unavailability, but behavior depends on the environment, modules, and processes. On systems where the service is named httpd , the commands differ.
Check several addresses in a browser, including www, IPv4 and IPv6, if they are used. If the site is behind a CDN, curl checking the public domain may test the external proxy rather than the origin Apache configuration. Therefore, a single successful response does not yet confirm that all nodes are configured correctly.
The system log and the virtual host error log can help distinguish a file access error, an incorrect certificate, a missing module, or a problem with the proxied application. It is better to make changes one issue at a time, recording the result of the check after each edit.
9. 301 Redirect: Moving a Site from HTTP to HTTPS

After installing the certificate, you need to determine the site’s primary address. For some projects, this is https://example.ru/, while for others it is an address with www. The chosen version should be used consistently in the sitemap, canonical links, and navigation. All HTTP addresses should redirect visitors to the secure version without unnecessary intermediate redirects.
For a simple case on Apache, the directive Redirect permanent from the mod_aliasmodule is suitable. It can be used in the HTTP virtual host. The main HTTPS host does not need to redirect requests to itself. Complex conditions may require mod_rewrite, but these should not be added alongside overlapping rules without checking them.
<VirtualHost *:80>
ServerName example.ru
ServerAlias www.example.ru
Redirect permanent / https://example.ru/
</VirtualHost>In the example, requests to any path retain the additional path portion when redirected. However, if the original site already has routing rules, check addresses with parameters, nested pages, and interaction with ACME validation. Let’s Encrypt can follow some redirects during HTTP-01, but the entire chain must still provide access to the validation resource.
curl -I http://example.ru/
curl -IL http://example.ru/articles/example.html
curl -I https://example.ru/The first response headers should show status code 301 and the correct Location. The final redirect chain must not contain infinite redirects, redirects back to HTTP, or unexpected host changes. If Cloudflare or another CDN already redirects HTTP to HTTPS, duplicating the redirect will not necessarily cause a problem, but it can lead to conflicts if the encryption mode between the proxy and server is incorrect.
10. TLS 1.2 and TLS 1.3: Compatibility, Ciphers, and Settings

TLS 1.3 is a modern version of the secure communications protocol. Compared with older generations, it reduces the complexity of connection negotiation and eliminates some outdated mechanisms. TLS 1.2 is still often needed for compatibility with devices and applications. Use TLS 1.3 exclusively only after checking the service’s audience and technical requirements.
In Apache, the versions are determined by the directive SSLProtocol, and TLS 1.3 support depends on the cryptographic library the server was built with. OpenSSL 1.1.1 and later provide TLS 1.3 support, but the presence of a version on disk alone does not prove that the running Apache is using it.
apache2ctl -v
openssl version
sudo apache2ctl -M | grep ssl
openssl s_client -connect example.ru:443 -servername example.ru -tls1_3 < /dev/nullThe last command checks whether a TLS 1.3 connection can be established to the public address. It does not replace checks of the name and trust chain: without additional parameters, s_client may establish a connection even when there are problems that a browser would consider critical. Therefore, the result must be interpreted together with other tests.
Fine-tuning ciphers is not a matter of copying a long list from an old blog. TLS 1.3 cipher suites are managed differently from those in TLS 1.2. For a production system, use current server configuration recommendations that account for the actual versions of Apache and OpenSSL and the clients being supported. Changes should be tested on a staging environment and with an external TLS analyzer.
11. How to Check the Certificate Chain, SAN, and SNI
When connecting to a server, the browser must see the correct certificate for the requested domain. If several sites run on one IP, SNI is used—the server name sent by the client during TLS negotiation. A misconfigured virtual host, outdated configuration, or a name missing from SAN can cause errors even when the certificate file has not expired.
Checking only by IP address often shows the default virtual host’s certificate, which does not necessarily mean the public domain site is broken. In OpenSSL commands, specify -servername to send SNI correctly and -verify_hostname to verify the name match.
openssl s_client -connect example.ru:443 -servername example.ru -verify_hostname example.ru -verify_return_error < /dev/null
openssl s_client -connect example.ru:443 -servername www.example.ru -verify_hostname www.example.ru -verify_return_error < /dev/nullTo inspect a locally installed file, a command that displays its dates and SAN is useful. It shows the properties of the file, but it does not necessarily match what is currently being served from outside the server. After renewing a certificate, check the public connection again and make sure Apache has actually picked up the update.
sudo openssl x509 -in /etc/letsencrypt/live/example.ru/fullchain.pem -noout -dates -subject -issuer -ext subjectAltNameSupporting multiple domains in one certificate and configuring multiple virtual hosts are independent tasks. The name must be covered by the certificate, and the Apache configuration must route the request to the correct application. If sites are migrated frequently, keep an up-to-date list of names and external entry points.
12. Certificate Renewal and Automation Checks
A certificate has a limited validity period, so the task is not finished after the first successful issuance. In 2026, industry rules already limit the maximum validity period of new public TLS certificates to 200 days, and further reductions are set out in the CA/Browser Forum’s approved schedule. Check the current documentation for the specific validity periods of the chosen certificate authority and ACME client.
Certbot usually provides automatic renewal through a systemd timer or another mechanism, depending on the installation method. Do not create a second equivalent cron job without checking first: parallel processes may interfere with each other, and multiple Certbot versions may manage different certificate directories.
sudo certbot certificates
sudo certbot renew --dry-run
systemctl list-timers --all | grep -i certbotCommand --dry-run helps test the upcoming renewal procedure without replacing the production certificate. However, even a successful test does not prove that Apache will reload the new certificate at the right time. The installer plugin in use and the reload mechanism should be checked after an actual renewal.
is issued separately through certonly, Apache may require a separate deploy hook. The hook should run after a successful renewal, not on every timer run unnecessarily. Before adding scripts, make sure there is no reload mechanism already configured.
sudo certbot renew --dry-run --deploy-hook "systemctl reload apache2"The example verification hook is for Debian/Ubuntu and requires an understanding of execution permissions. In some Certbot releases, whether a deploy hook is simulated during a dry run depends on the version and flags, so check the behavior of the installed client. Verification involves not only the Certbot log but also measuring the validity period of the publicly served certificate.
13. How to Handle a Private Key Securely
The private key is the certificate's most important secret. Knowing only the public certificate does not allow an attacker to impersonate the server. But if the private key is leaked, there is a risk of server impersonation and a breach of trust in the secure connection. Therefore, the key file must not be stored in a public website directory or included in unprotected backups, logs, or analytics systems.
Usually, files under /etc/letsencrypt are accessible to the administrator and required services through configured permissions and symbolic links. Broadly expanding permissions chmod 777 is dangerous practice and must not be used to work around read errors. If the server process cannot open the private key, first check the file owner, permissions along the path, SELinux/AppArmor context, and the actual way Apache is started.
If a key may have been compromised, generate a new key pair, install a new certificate, update all nodes that use it, and take revocation-related steps as appropriate for the situation. Simply replacing the certificate while reusing the stolen key does not eliminate the risk. In systems with multiple services, determine where else the key was used.
A common mistake is sending the private key to a third-party “verification site” or posting it in a message. To check external HTTPS, the domain name is usually sufficient. To view certificate properties, the public certificate and diagnostic tools are enough; there is no need to transmit the secret part.
14. HSTS on Apache: Enabling It Without Losing Access
HSTS tells the browser to connect to the site only over HTTPS in the future. This mechanism helps prevent certain unwanted redirects to unencrypted HTTP, but an incorrectly set long duration can make it harder to restore the site if TLS problems occur. Therefore, it is recommended to enable the header in stages after checking that all required domain names are working.
On Apache with the mod_headers module, the header is set inside the HTTPS virtual host. You can start with a small max-age value, such as five minutes, and gradually increase it after monitoring the site. Do not immediately apply includeSubDomains to a large zone with unprepared technical subdomains.
Header always set Strict-Transport-Security "max-age=300"The line should be placed in the HTTPS host context, not added indiscriminately to the HTTP configuration. The duration can be increased later once all conditions have been checked. Sending HSTS over HTTP does not give the browser the same guarantee as receiving the header over a secure connection.
HSTS preload is a separate decision with long-term consequences: it requires meeting specific conditions and being ready to support HTTPS on all necessary subdomains. For an informational website, it is more useful to first achieve stable, regular HTTPS than to try to add the strictest possible directives on the first day of setup.
15. WordPress Site: URLs, .htaccess, and Mixed Content
On WordPress, installing a certificate in Apache is only the first step. The content management system stores its own site URLs, and images, scripts, styles, and theme data may contain absolute HTTP links. As a result, switching to HTTPS can lead to Mixed Content warnings, broken styles, and redirect loops.
URLs WordPress Address and Site Address must match the selected HTTPS domain. If old URLs need to be replaced in the database, use a tool that can handle serialized values, such as a properly configured WP-CLI. A simple SQL string replacement in tables that does not account for data formats can corrupt saved settings.
wp option get home
wp option get siteurl
wp search-replace "http://example.ru" "https://example.ru" --all-tables --dry-runWP-CLI commands must be run from the correct WordPress installation directory and with permissions consistent with the chosen administration model. First, back up the database, then run a test replacement, and only perform the actual operation after reviewing the list of changes. If the URLs are already correct, there is no need to replace them again.
The file .htaccess does not work in every configuration. Its rules are applied depending on the AllowOverridesetting, and in projects with centralized configuration management, it is preferable to keep redirects in the virtual host. Duplicating redirects in Apache, WordPress, and a CDN can cause ERR_TOO_MANY_REDIRECTS.
To find Mixed Content, open the browser console and the Network tab. Fix the original links, themes, widgets, and plugins. Redirecting all HTTP resources to HTTPS without checking whether the URLs are available can cause loading errors, so fix the source of the problem in the application.
16. Apache as a Reverse Proxy: Where the TLS Certificate Is Located
Apache can serve files directly or accept HTTPS and proxy requests to an application on another port. In the latter case, the certificate on the external Apache server protects the connection from the browser to the proxy. If the backend is on another server, consider securing the second segment of the connection as well. If it is local, the decision depends on the architecture and security requirements.
The proxy passes information about the original request scheme to the application, for example through a trusted X-Forwarded-Proto. Do not blindly trust headers with the same names from any external client: this can lead to incorrect scheme detection and redirects. The trust boundary between the web server and the application must be configured explicitly.
If a CDN is in front of Apache, the CDN may use HTTPS for visitors but connect to the origin over HTTP. Such a configuration cannot be considered end-to-end TLS. For a secure infrastructure, HTTPS is preferable on the connection to the origin as well, with certificate verification according to the provider's capabilities.
One sign of a scheme mismatch is an endless redirect between HTTP and HTTPS. Troubleshooting starts with checking the headers, proxy settings, the CMS's main URL, and which server returns a particular 301 or 302 code. Trying random .htaccess rules only makes it harder to find the cause.
17. Common Apache SSL Errors and How to Check Them
Even a correctly created certificate may fail to work because of the configuration. When troubleshooting, separate certificate issuance from installation and check the public site's response independently. TLS errors can look the same to a visitor but require completely different administrator actions.
If Apache does not reload after editing, do not repeatedly restart it without reading the log. Run apache2ctl configtest, then check the service status and log. Any new directive must be compatible with the current server version and the enabled module.
sudo apache2ctl configtest
sudo systemctl status apache2 --no-pager
sudo journalctl -u apache2 -n 100 --no-pager
sudo tail -n 60 /var/log/apache2/error.logRHEL systems use different service names and log paths. If Apache is running inside a container, logs may be sent to stdout rather than a regular file. Therefore, start the check with the actual deployment setup, not just the familiar Debian commands.
18. How to Check HTTPS After Installation: A Full Set of Tests
A successful Certbot result is a useful signal, but it is not a final check of the site. Acceptance involves several independent actions. First, open the main domain over HTTPS in a modern browser, then check the version with www, if it is used. After that, check the chain, redirect, resources, expiration, TLS 1.3, and auto-renewal.
curl -I http://example.ru/
curl -I https://example.ru/
curl -IL http://example.ru/razdel/
openssl s_client -connect example.ru:443 -servername example.ru -verify_hostname example.ru -verify_return_error < /dev/null
openssl s_client -connect example.ru:443 -servername example.ru -tls1_3 < /dev/null
sudo certbot renew --dry-runWhen checking in a browser, open Developer Tools: the Console tab should show no insecure resource errors, and the Network tab should show no failed requests for critical styles and scripts. If the site has login forms and CMS administration functions, check them separately, even if the public home page looks correct.
For an independent assessment, use SSL Labs Server Test. It analyzes the public HTTPS endpoint, including the TLS configuration and some certificate chain issues. The result applies to the checked IP address and domain name; with load balancing and multiple addresses, it is important to cover all entry points.
A separate test after reissuance must confirm that the new certificate is actually being used by the external server. A mismatch between the file issued by Certbot and the certificate seen by the client often occurs because Apache was not reloaded, the wrong certificate path is being used, the virtual host is incorrect, or a caching proxy is involved.
19. Frequently Asked Questions About Installing SSL on Apache
Do I need paid SSL for Apache?
No. Apache is compatible with free, publicly trusted certificates, including Let's Encrypt. A DV certificate is often sufficient for a regular website. A paid product may be useful if there are special requirements for legal entity validation or support, but it does not make encryption stronger by itself.
Do I need a separate certificate for www and non-www?
You can use one certificate if both names are listed in SAN. If the www address is not used and has no DNS record, it does not need to be included in the request.
Can I use TLS 1.3 without TLS 1.2?
Technically, this is possible in a compatible configuration, but it limits support for older clients. For most public websites, it is reasonable to assess the actual audience first.
Can I configure SSL using only .htaccess?
Usually not: .htaccess can control redirects and some settings, but the certificate, key, and TLS on port 443 must be configured at the server level or in the control panel.
Why does the browser see the old certificate after renewal?
Possible causes include Apache not being reloaded, a different certificate path being used, a CDN, multiple nodes, or an incorrect virtual host selection. Check both the local file and the certificate actually being served.
Does port 80 need to be open after HTTPS is installed?
Port 80 is required for HTTP-01 validation. If another validation method is used, the requirement may differ. Regular HTTP can still be redirected to HTTPS while keeping the renewal mechanism accessible.
Does a certificate protect WordPress from hacking?
No. A certificate protects the connection and helps verify the site's name, but the CMS, plugins, passwords, and server still require updates and secure configuration.
20. Practical Checklist Before Moving Apache to HTTPS
It is easier to move to HTTPS using a short but meaningful checklist. It separates technical preparation from the final check and reduces the chance of accidental downtime. For complex websites, add checks for payment integrations, reverse proxies, APIs, and mobile applications.
The final step is to record the deployment date, issuance method, certificate location, automation mechanism, and recovery procedures. This information is especially important when handing the site over to another administrator or moving it from a VPS to new hosting.
After successful verification, you can gradually strengthen security settings, including HSTS. Making abrupt changes to several directives at once makes troubleshooting more difficult, so it is safer to apply them in stages, recording monitoring results and client compatibility.
21. Useful Official Resources
For a production server, prioritize the official documentation for the specific versions of Apache and Certbot, the certificate authority’s instructions, and TLS recommendations. The resources below can help clarify directive syntax and choose compatible settings.
- Apache HTTP Server — SSL/TLS How-To.
- Apache mod_ssl — SSLProtocol, SSLCertificateFile, and keys.
- Apache mod_alias — Redirect and RedirectPermanent.
- Apache mod_headers — HTTP security headers.
- Certbot — official installation wizard.
- Certbot — installation methods and automatic renewal.
- Let’s Encrypt — domain ownership checks.
- MDN — HSTS.
- SSL Labs — external TLS test.
Information updated November 5, 2026. Each specific system must be checked against its installed versions of Apache, OpenSSL, and Certbot, its OS settings, and its domain configuration.