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.

Revisions

  1. iammiracle revised this gist Apr 15, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Django + Apache Configuration
    Original file line number Diff line number Diff line change
    @@ -3,15 +3,15 @@
    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

    WSGIScriptAlias / /var/www/project_name/project_name/wsgi.py

    ErrorLog /var/www/logs/error.log
    CustomLog /var/www/logs/custom.log combined

  2. iammiracle created this gist Apr 15, 2019.
    18 changes: 18 additions & 0 deletions Django + Apache Configuration
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <VirtualHost *:80>
    ServerName 127.0.0.1
    ServerAlias localhost

    Alias /static /var/www/project_name/static/

    <Directory /var/www/project_name/>
    Order deny,allow
    Allow from all
    </Directory>

    DocumentRoot /var/www/project_name

    WSGIScriptAlias / /var/www/project_name/project_name/wsgi.py
    ErrorLog /var/www/logs/error.log
    CustomLog /var/www/logs/custom.log combined

    </VirtualHost>