Skip to content

Instantly share code, notes, and snippets.

@samirfor
Created September 6, 2016 16:34
Show Gist options
  • Save samirfor/9841250d7255c05f1aa4f2ab41066f29 to your computer and use it in GitHub Desktop.
Save samirfor/9841250d7255c05f1aa4f2ab41066f29 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName hom.sgps.fortaleza.ce.gov.br
DocumentRoot /var/www/meusistema
ErrorLog ${APACHE_LOG_DIR}/meusistema_error.log
CustomLog ${APACHE_LOG_DIR}/meusistema_access.log combined
<Directory /var/www/meusistema/public>
DirectoryIndex index.html index.php
Options -Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule mod_headers.c>
Header set X-Frame-Options SAMEORIGIN
Header always set X-Content-Type-Options nosniff
Header set X-XSS-Protection 1;mode=block
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment