Hello everyone,
we are going to submit out system to a penetration testing and we are trying to fix some minor problems before to do it but I have some problems with this configuration for Apache
I think that the first 2 lines has to be put in the normal httpd.conf file while the others in the conf.d/ssl.conf is that right?
later I need to insert this one
I insert it in the vhost (through Plesk Additional directives for HTTP/S) of one domain, is also working if I put in in a subdomain though if I put in another domain it say:
what is the correct way to do it?
we are going to submit out system to a penetration testing and we are trying to fix some minor problems before to do it but I have some problems with this configuration for Apache
Code:
ServerTokens ProductOnly
ServerSignature Off
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options nosniff
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
I think that the first 2 lines has to be put in the normal httpd.conf file while the others in the conf.d/ssl.conf is that right?
later I need to insert this one
Code:
Header set Content-Security-Policy: default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'
I insert it in the vhost (through Plesk Additional directives for HTTP/S) of one domain, is also working if I put in in a subdomain though if I put in another domain it say:
Code:
Invalid Apache configuration: AH00526: Syntax error on line 1 of /path/to/conf/vhost.conf: Header has too many arguments
what is the correct way to do it?
Last edited: