-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dillon Lareau
committed
Sep 11, 2018
1 parent
45c4241
commit dc0bf2b
Showing
4 changed files
with
39 additions
and
291 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
# An apache configuration file meant to be paired with puzzlehunt_setup.sh | ||
# Meant for quick vagrant base developement. Does not do shibboleth or ssl. | ||
|
||
Define username vagrant | ||
|
||
NameVirtualHost *:80 | ||
<VirtualHost *:80> | ||
ServerAdmin webmaster@localhost | ||
DocumentRoot /var/www/html | ||
|
||
<Directory /home/vagrant/puzzlehunt_server/puzzlehunt_server> | ||
<Files wsgi.py> | ||
Require all granted | ||
</Files> | ||
</Directory> | ||
|
||
Alias /static /home/vagrant/puzzlehunt_server/static | ||
<Directory /home/vagrant/puzzlehunt_server/static> | ||
Require all granted | ||
</Directory> | ||
|
||
Alias /media /home/vagrant/puzzlehunt_server/media | ||
XSendFile On | ||
XSendFilePath /home/vagrant/puzzlehunt_server/media | ||
<Directory /home/vagrant/puzzlehunt_server/media> | ||
Require all granted | ||
</Directory> | ||
<Directory /home/vagrant/puzzlehunt_server/media/puzzles> | ||
Require all denied | ||
</Directory> | ||
|
||
ProxyPass /static/ ! | ||
ProxyPass /media/ ! | ||
|
||
WSGIDaemonProcess puzzlehunt_server python-path=/home/vagrant/puzzlehunt_server:/home/vagrant/puzzlehunt_server/venv/lib/python2.7/site-packages | ||
WSGIProcessGroup puzzlehunt_server | ||
WSGIScriptAlias / /home/vagrant/puzzlehunt_server/puzzlehunt_server/wsgi.py | ||
ServerAdmin webmaster@localhost | ||
DocumentRoot /var/www/html | ||
|
||
<Directory /home/${username}/puzzlehunt_server/puzzlehunt_server> | ||
<Files wsgi.py> | ||
Require all granted | ||
</Files> | ||
</Directory> | ||
|
||
Alias /static /home/${username}/puzzlehunt_server/static | ||
<Directory /home/${username}/puzzlehunt_server/static> | ||
Require all granted | ||
</Directory> | ||
|
||
Alias /media /home/${username}/puzzlehunt_server/media | ||
XSendFile On | ||
XSendFilePath /home/${username}/puzzlehunt_server/media | ||
<Directory /home/${username}/puzzlehunt_server/media> | ||
Require all granted | ||
</Directory> | ||
<Directory /home/${username}/puzzlehunt_server/media/puzzles> | ||
Require all denied | ||
</Directory> | ||
|
||
ProxyPass /static/ ! | ||
ProxyPass /media/ ! | ||
|
||
WSGIDaemonProcess puzzlehunt_server python-path=/home/${username}/puzzlehunt_server:/home/${username}/puzzlehunt_server/venv/lib/python2.7/site-packages | ||
WSGIProcessGroup puzzlehunt_server | ||
WSGIScriptAlias / /home/${username}/puzzlehunt_server/puzzlehunt_server/wsgi.py | ||
|
||
</VirtualHost> |
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