Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


enable_strict_transport_security_apache_virtual_host

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
enable_strict_transport_security_apache_virtual_host [2023/06/24 17:04] wikiadminenable_strict_transport_security_apache_virtual_host [2023/06/24 17:14] (current) wikiadmin
Line 18: Line 18:
 This example configuration will make all subdomains only accessible via HTTPS. If you have subdomains not accessible via HTTPS, remove includeSubDomains.  Consider how this would affect integration with OnlyOffice Document Server hosted on a subdomain of the NextCloud domain, unless the subdomain is added to or included in the LetsEncrypt SSL certificate. This example configuration will make all subdomains only accessible via HTTPS. If you have subdomains not accessible via HTTPS, remove includeSubDomains.  Consider how this would affect integration with OnlyOffice Document Server hosted on a subdomain of the NextCloud domain, unless the subdomain is added to or included in the LetsEncrypt SSL certificate.
  
-IMPORTANT:  This requires the mod_headers extension in Apache.+**IMPORTANT:  This requires the mod_headers extension in Apache.**
  
-Let's see how to enable headers module using a2enmod +===== Here’s how to enable mod_headers in Apache Ubuntu / Debian =====
- +
-How to Enable mod_headers in Apache Ubuntu +
-Here’s how to enable mod_headers in Apache Ubuntu / Debian.+
  
 1. Install mod_headers 1. Install mod_headers
Line 36: Line 33:
 <code> <code>
 $ sudo a2enmod headers $ sudo a2enmod headers
 +</code>
 +
 +<code>
 +$ sudo a2enmod headers
 +</code>
 +
 +Result:
 +
 +<code>
 +Enabling module headers.
 +To activate the new configuration, you need to run:
 +  systemctl restart apache2
 +$
 </code> </code>
  
 2. Restart Apache web server for changes to take effect 2. Restart Apache web server for changes to take effect
  
 +<code>
 +$ sudo systemctl restart apache2
 +</code>
 +
 +OR
 +
 +<code>
 $ sudo service apache2 restart $ sudo service apache2 restart
 +</code>
  
 3. Check if mod_headers is working.  You can easily check if mod_headers is enabled by running the following command 3. Check if mod_headers is working.  You can easily check if mod_headers is enabled by running the following command
enable_strict_transport_security_apache_virtual_host.1687626269.txt.gz · Last modified: 2023/06/24 17:04 by wikiadmin