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

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


    ServerName domain.com

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

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