YetiForceCompany/YetiForceCRM

View on GitHub
tests/setup/apache/httpd-vhosts.conf

Summary

Maintainability
Test Coverage
<VirtualHost *:80>
    ServerName yeti
    ServerAlias yeti
    ErrorLog "c:/www/__vhost_logs/YetiForceCRM_apache_error.log"
    CustomLog "c:/www/__vhost_logs/YetiForceCRM_access.log" common
    DocumentRoot c:/www/YetiForceCRM/public_html
    <Directory  "c:/www/YetiForceCRM/public_html/">
        AllowOverride All
        Require local

        <ifModule mod_headers.c>
            Header unset X-XSS-Protection
            Header unset Strict-Transport-Security
            Header unset X-Frame-Options
            Header unset X-Content-Type-Options
            Header unset X-Permitted-Cross-Domain-Policies
            Header unset Referrer-Policy
            Header unset Expect-CT
            Header unset X-Robots-Tag
            Header unset Server
            Header unset X-Powered-By
            Header unset Access-Control-Allow-Origin

            Header always set X-XSS-Protection "1; mode=block"
            Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
            Header always set X-Frame-Options SAMEORIGIN
            Header always set X-Content-Type-Options nosniff
            Header always set X-Permitted-Cross-Domain-Policies "none"
            Header always set Referrer-Policy "no-referrer"
            Header always set Expect-CT 'enforce; max-age=3600
            Header always set X-Robots-Tag none
            Header always set Access-Control-Allow-Origin: *

            Header setifempty Cache-Control "private, no-cache, no-store, must-revalidate, post-check=0, pre-check=0"
            <FilesMatch "\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt|ttf|woff2)$">
                Header setifempty Cache-Control "max-age=86400, public"
            </FilesMatch>

        </ifModule>

        AddDefaultCharset UTF-8

        <ifModule ModSecurity.c>
            SecServerSignature ''
        </ifModule>
        <IfModule mod_autoindex.c>
            Options -Indexes -MultiViews
        </IfModule>
    </Directory>
</VirtualHost>