Skip to content

Instantly share code, notes, and snippets.

@suhailvs
Created May 21, 2019 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhailvs/56bb10e51ebc7f5a91e5b2ca4b7c58b1 to your computer and use it in GitHub Desktop.
Save suhailvs/56bb10e51ebc7f5a91e5b2ca4b7c58b1 to your computer and use it in GitHub Desktop.
Apache Configuration for angular app and Django app
<VirtualHost *:80>
    ServerName fandb.vidhyadhan.in
    DocumentRoot /var/www/fandb.vidhyadhan.in/frontend
    <Directory /var/www/fandb.vidhyadhan.in/frontend>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
            # Uncomment this directive is you want to see apache2's
            # default start page (in /apache2-default) when you go to /
            #RedirectMatch ^/$ /apache2-default/
    </Directory>
    ErrorLog /var/www/fandb.vidhyadhan.in/frontend/error.log
    CustomLog /var/www/fandb.vidhyadhan.in/frontend/access.log combined
</VirtualHost>

<VirtualHost *:80>
    ServerName fandbapi.vidhyadhan.in
    WSGIDaemonProcess fandb.vidhyadhan.in_backend python-home=/var/www/fandb.vidhyadhan.in/backend/venv python-path=/var/www/fandb.vidhyadhan.in/backend
    WSGIProcessGroup fandb.vidhyadhan.in_backend
    WSGIPassAuthorization On
    WSGIScriptAlias / /var/www/fandb.vidhyadhan.in/backend/backend/wsgi.py
    ErrorLog /var/www/fandb.vidhyadhan.in/backend/error.log
    CustomLog /var/www/fandb.vidhyadhan.in/backend/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment