Skip to content

Instantly share code, notes, and snippets.

@Caffe1neAdd1ct
Last active July 21, 2017 18:37
Show Gist options
  • Save Caffe1neAdd1ct/82e27c2bcb454b8129e0e23c31462e63 to your computer and use it in GitHub Desktop.
Save Caffe1neAdd1ct/82e27c2bcb454b8129e0e23c31462e63 to your computer and use it in GitHub Desktop.
Example VirtualHost 80
<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