LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-26-2014, 01:16 AM   #1
anctop
Member
 
Registered: Feb 2010
Posts: 99

Rep: Reputation: Disabled
HSTS header for mixed virtual hosts


Our server is configured with two IP addresses (say ip1 and ip2) and running Apache httpd 2.4. The web server is configured for multiple virtual hosts :

Code:
Listen ip1:80
Listen ip1:443
Listen ip2:443
....
<VirtualHost ip1:80> # Site1
  ServerName http://host1.domain.com
  DocumentRoot "/www1/doc"
  ....
</VirtualHost>
<VirtualHost ip1:443> # Site1s
  ServerName https://host1.domain.com
  DocumentRoot "/www1/php"
  ....
</VirtualHost>
<VirtualHost ip2:443> # Site2s
  ServerName https://host2.domain.com
  DocumentRoot "/www2/php"
  ....
</VirtualHost>
The host "Site1" serves ordinary html pages, "Site1s" and "Site2s" are web applications written in PHP. When I perform security assessment on "https://host1.domain.com" using Arachni scanner, the result contains a warning of "Missing Strict-Transport-Security header".
Following the instruction, the line "Header always set Strict-Transport-Security max-age=31536000" is added to the definitions of "Site1s" and "Site2s", then re-run the scanner, but the result still has the STS warning.
I suspect that the warning is due to the co-existence of "Site1" and "Site1s".
Is there any workaround for the case ?

Last edited by anctop; 11-27-2014 at 07:03 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSL Virtual Hosts, CSS and IE Mixed Content fukawi2 Linux - Server 7 09-17-2010 11:16 PM
debian lenny - all virtual hosts lead to first virtual host rantastic Linux - Server 2 04-21-2010 09:32 PM
Virtual Hosts ayomacro Linux - Server 1 02-29-2008 06:00 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
Help with Virtual Hosts? econnections Linux - Newbie 3 07-02-2005 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:33 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