Last active
December 20, 2015 20:28
-
-
Save vandorjw/6190376 to your computer and use it in GitHub Desktop.
This is an example configuration for an apache-2.2 web-server.
Some directives are optional.
EnvVariables have been removed.
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
<VirtualHost *:80> | |
ServerName trunk.vandorjw.me | |
Redirect permanent / https://trunk.vandorjw.me/ | |
</VirtualHost> | |
<Virtualhost *:443> | |
ServerAdmin admin@xxxxxxxxxxx | |
ServerName trunk.vandorjw.me | |
DirectoryIndex index.html | |
DocumentRoot /var/www/vandorjw.me/htdocs | |
Errorlog logs/trunk.vandorjw.me/error.log | |
Customlog logs/trunk.vandorjw.me/access.log combined | |
Loglevel Warn | |
WSGIDaemonProcess trunk-vandorjw display-name=%{GROUP} processes=1 threads=4 \ | |
python-path=/var/www/trunk.vandorjw.me/project:/var/virtualenvs/trunk-vandorjw/lib/python2.7/site-packages | |
WSGIProcessGroup trunk-vandorjw | |
WSGIScriptReloading On | |
WSGIScriptAlias / /var/www/trunk.vandorjw.me/project/core/wsgi.py | |
<Directory /var/www/trunk.vandorjw.me/project> | |
Order deny,allow | |
Deny from all | |
<Files wsgi.py> | |
Order deny,allow | |
Allow from all | |
</Files> | |
</Directory> | |
Alias /static /var/www/trunk.vandorjw.me/static-collect | |
<Directory /var/www/trunk.vandorjw.me/static-collect> | |
Options -Indexes | |
Order deny,allow | |
Allow from all | |
</Directory> | |
Alias /media /var/www/trunk.vandorjw.me/media | |
<Directory /var/www/trunk.vandorjw.me/media> | |
Options -Indexes | |
Order deny,allow | |
Allow from all | |
</Directory> | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl-certs.d/trunk.vandorjw.me/server.crt | |
SSLCertificateKeyFile /etc/apache2/ssl-certs.d/vandorjw.me/server.key | |
</Virtualhost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment