Last active
November 12, 2018 13:52
-
-
Save GabrielMMelo/8800f932bbcc27e9303ee93b1c11f968 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Make sure that you have properly installed mod_wsgi | |
# sudo apt install libapache2-mod-wsgi-py3 | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
DocumentRoot /home/pi/projects/recrear-lp | |
# Must use python manage.py collectstatic to group all static files to /project/static | |
Alias /static /home/pi/projects/recrear-lp/static | |
<Directory /home/pi/projects/recrear-lp/static> | |
Require all granted | |
</Directory> | |
# Alias /media /home/pi/projects/recrear-lp/core/media | |
# <Directory /home/pi/projects/recrear-lp/core/media> | |
# Require all granted | |
# </Directory> | |
<Directory /home/pi/projects/recrear-lp/recrear> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
Require all granted | |
</Directory> | |
<Directory /home/pi/projects/recrear-lp/recrear> | |
<Files wsgi.py> | |
Require all granted | |
</Files> | |
</Directory> | |
WSGIDaemonProcess recrear.com.br python-path=/home/pi/projects/recrear-lp:/home/pi/.virtualenvs/recrear/lib/python3.5/site-packages | |
WSGIProcessGroup recrear.com.br | |
WSGIScriptAlias / /home/pi/projects/recrear-lp/recrear/wsgi.py | |
WSGIApplicationGroup %{GLOBAL} | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment