LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-27-2017, 08:54 AM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

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 -

https://docs.nextcloud.com/server/12...en_server.html

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

/etc/httpd/conf/httpd.conf

or here

/etc/httpd/conf.d/ssl.conf

many thanks,

rob

Last edited by robertkwild; 10-27-2017 at 08:57 AM.
 
Old 10-27-2017, 10:57 AM   #2
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

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"

</IfModule>
 
  


Reply



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-19-2015 11:21 PM
LXer: HTTP Strict Transport Security becomes Internet Standard LXer Syndicated Linux News 0 11-21-2012 09:33 PM
LXer: GMail Fails LA PD Strict Security Requirements LXer Syndicated Linux News 1 12-19-2011 09:43 PM
Security setting too strict The_Nerd Linux - Security 2 03-30-2008 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:58 AM.

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