Skip to content

Instantly share code, notes, and snippets.

@suhailvs
Last active April 7, 2018 06:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save suhailvs/36a77c44d56a5fb38512aaec0d2313b4 to your computer and use it in GitHub Desktop.
Digital ocean apache django
$ apt-get update
$ apt-get install python3-pip apache2 libapache2-mod-wsgi-py3


<VirtualHost *:8002>

    <Directory /var/www/djangorest_angular/dj_backend/dj_backend>
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>

    WSGIDaemonProcess djng python-home=/var/www/djangorest_angular/tenv python-path=/var/www/djangorest_angular/dj_backend
    WSGIProcessGroup djng
    WSGIScriptAlias / /var/www/djangorest_angular/dj_backend/dj_backend/wsgi.py
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment