Last active
July 21, 2017 18:37
-
-
Save Caffe1neAdd1ct/82e27c2bcb454b8129e0e23c31462e63 to your computer and use it in GitHub Desktop.
Example VirtualHost 80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName domain.tld | |
ServerAdmin [email protected] | |
DocumentRoot "/var/www/html/domain.tld/" | |
<Directory "/var/www/html/domain.tld/"> | |
Options +Indexes +FollowSymLinks +MultiViews | |
AllowOverride All | |
Require all granted | |
Order allow,deny | |
Allow from all | |
</Directory> | |
# iframes | |
Header always set X-Frame-Options DENY | |
# mime sniffing | |
Header always set X-Content-Type-Options nosniff | |
# X-XSS | |
Header always set X-Xss-Protection "1; mode=block" | |
ErrorLog "/var/log/httpd/domain.tld/error.log" | |
CustomLog "/var/log/httpd/domain.tld/access.log" combined | |
CustomLog "/var/log/httpd/domain.tld/bandwidth.log" common | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment