Last active
April 17, 2019 06:27
-
-
Save iammiracle/4c652a4c79844e771aa37b9e85aa1b05 to your computer and use it in GitHub Desktop.
Django + Apache Configuration
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
| <VirtualHost *:80> | |
| ServerName 127.0.0.1 | |
| ServerAlias localhost | |
| Alias /static /var/www/project_name/static/ | |
| WSGIScriptAlias / /var/www/project_name/project_name/wsgi.py | |
| <Directory /var/www/project_name/> | |
| Order deny,allow | |
| Allow from all | |
| </Directory> | |
| DocumentRoot /var/www/project_name | |
| ErrorLog /var/www/logs/error.log | |
| CustomLog /var/www/logs/custom.log combined | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment