Deploy/Run a Django app with Apache and Gunicorn in Ubuntu

Here is apache configuration file when django is run by Gunicorn.


    Alias /static /home/ambu/myproject/static
        Require all granted

    ProxyPreserveHost On
    ProxyPass "/static/" !
    ProxyPass        "/" ""
    ProxyPassReverse "/" ""
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

FollowFollow on FacebookFollow on Google+Email this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *