Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.


  Search this Thread
Old 10-27-2017, 09:54 AM   #1
Registered: Feb 2015
Posts: 376

Rep: Reputation: Disabled
Enable HTTP Strict Transport Security

hi all,

got a warning on my nextcloud server saying i need to do the above but reading through the manual -

where do you add those lines to, is it the -


or here


many thanks,


Last edited by robertkwild; 10-27-2017 at 09:57 AM.
Old 10-27-2017, 11:57 AM   #2
Registered: Feb 2015
Posts: 376

Original Poster
Rep: Reputation: Disabled
got it working, i didnt need all the information required, as some where duplicates in the ssl.conf file so all i needed was the below, i put it in between the two virtual host tags -

<IfModule mod_headers.c>

Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Apache HTTP Server Adds HTTP/2 Support for Speed and Security LXer Syndicated Linux News 0 10-20-2015 12:21 AM
LXer: HTTP Strict Transport Security becomes Internet Standard LXer Syndicated Linux News 0 11-21-2012 10:33 PM
LXer: GMail Fails LA PD Strict Security Requirements LXer Syndicated Linux News 1 12-19-2011 10:43 PM
Security setting too strict The_Nerd Linux - Security 2 03-30-2008 01:11 AM > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration