Actions
Headers are not set correctly on your instance¶
If you encounter issues related to setting HTTP headers in Apache in the future, here's a step-by-step guide to help you troubleshoot and fix them:
This is typically found in /etc/apache2/sites-available/
cd /etc/apache2/sites-available/ nano next.conf
Add this line to the end
# Adding HSTS header Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
Finally, restart Apache to apply the changes.
sudo systemctl restart apache2
Updated by Gareth Eaton 6 months ago · 2 revisions