Last active
August 8, 2021 20:32
-
-
Save sitemapxml/92f01802d3909ca125250f58005db3b1 to your computer and use it in GitHub Desktop.
Apache example configuration
This file contains 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
# This is sample apache configuration | |
# It can be put in /etc/apache2/sites-available | |
# Installation: | |
# wget https://gist.githubusercontent.com/sitemapxml/92f01802d3909ca125250f58005db3b1/raw/04b768699bf4813aa67e9ad22030c2c236257856/apache.conf | |
# cp apache.conf /etc/apache2/sites-available/example.com | |
# a2ensite example.com | |
# apachectl restart | |
<VirtualHost *:80> | |
ServerName sn_default | |
DocumentRoot /var/www/dir_default/html | |
# Header set Strict-Transport-Security "max-age=31536000" env=HTTPS | |
# Header always append X-Frame-Options SAMEORIGIN | |
# Header set X-Content-Type-Options nosniff | |
# Header set X-XSS-Protection "1; mode=block" | |
<Directory /var/www/dir_default/html> | |
Options -Indexes | |
Options FollowSymLinks | |
AllowOverride All | |
# Require all granted | |
# You can put your IP here: | |
#<RequireAny> | |
# Require all denied | |
# Require ip 123.123.123.123 | |
# Require ip 124.124.124.124 | |
#</RequireAny> | |
#6g Include /etc/apache2/6g.conf | |
#7g Include /etc/apache2/7g.conf | |
</Directory> | |
</VirtualHost> | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment