Skip to content

Instantly share code, notes, and snippets.

@a4amaan
Last active December 23, 2019 10:42
Show Gist options
  • Save a4amaan/fa91435b836a55fb21d4b363bbdaeeed to your computer and use it in GitHub Desktop.
Save a4amaan/fa91435b836a55fb21d4b363bbdaeeed to your computer and use it in GitHub Desktop.
Apache Virtual host for Django To Run Along With PHP
<VirtualHost *:80>
ServerName xyz.example.com
ServerAdmin admin@example.com
ErrorLog /var/www/web.example.com/error.log
CustomLog /var/www/web.example.com/access.log combined
Alias /static /var/www/web.example.com/static
<Directory /var/www/web.example.com/static>
Require all granted
</Directory>
<Directory /var/www/web.example.com/example>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess example processes=1 threads=15 python-path=/var/www/web.example.com display-name=%{GROUP}
WSGIProcessGroup example
WSGIScriptAlias / /var/www/web.example.com/example/wsgi.py
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment