Skip to content

Instantly share code, notes, and snippets.

@iammiracle
Last active April 17, 2019 06:27
Show Gist options
  • Select an option

  • Save iammiracle/4c652a4c79844e771aa37b9e85aa1b05 to your computer and use it in GitHub Desktop.

Select an option

Save iammiracle/4c652a4c79844e771aa37b9e85aa1b05 to your computer and use it in GitHub Desktop.
Django + Apache Configuration
<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