Skip to content

Instantly share code, notes, and snippets.

@skdblog1999
Last active January 31, 2020 13:00
Show Gist options
  • Select an option

  • Save skdblog1999/4f80e745f9f1de2e1e9d6fa7b89fc69b to your computer and use it in GitHub Desktop.

Select an option

Save skdblog1999/4f80e745f9f1de2e1e9d6fa7b89fc69b to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName <your-server-name-or-domain-name>
WSGIDaemonProcess <project_name> python-path=/home/ubuntu/<project_name>:/home/ubuntu/miniconda3/envs/<project_name>/lib/python<version>/site-packages
WSGIProcessGroup <project_name>
WSGIScriptAlias / /home/ubuntu/<project_name>/<project_name>.wsgi
<Directory /home/ubuntu/<project_name>/>
Require all granted
Order allow,deny
Allow from all
</Directory>
<Directory /home/ubuntu/<project_name>/<project_name>/>
Require all granted
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment