Skip to content

Instantly share code, notes, and snippets.

@sifex
Created January 8, 2017 23:29
Show Gist options
  • Select an option

  • Save sifex/894482760ce9ce8830578b48b9dbddf6 to your computer and use it in GitHub Desktop.

Select an option

Save sifex/894482760ce9ce8830578b48b9dbddf6 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName www-dev.australianarmedforces.org
DocumentRoot /var/www/australianarmedforces.org
ServerAdmin chess2ryme@gmail.com
<Directory "/var/www/australianarmedforces.org">
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .inc
AddOutputFilter INCLUDES .inc
</Directory>
<Directory "/var/www/australianarmedforces.org/admin">
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType text/html .html
AddOutputFilter INCLUDES .html
AddType text/html .inc
AddOutputFilter INCLUDES .inc
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /var/www/australianarmedforces.org/admin/.htpasswd
Require valid-user
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment