Skip to content

Instantly share code, notes, and snippets.

@cpjeanpaul
Created May 7, 2019 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpjeanpaul/6eb802b698b19afa902e27dc8e2221e0 to your computer and use it in GitHub Desktop.
Save cpjeanpaul/6eb802b698b19afa902e27dc8e2221e0 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName fdm.jp
ServerAlias www.fdm.jp
DocumentRoot /var/www/fdm.jp/public_html
<Directory /var/www/fdm.jp/public_html>
Require all granted
AllowOverride all
</Directory>
RewriteEngine on
RewriteOptions inherit
RewriteRule \.(svn|git)(/)?$ - [F]
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment