Last active
December 23, 2019 10:42
-
-
Save a4amaan/fa91435b836a55fb21d4b363bbdaeeed to your computer and use it in GitHub Desktop.
Apache Virtual host for Django To Run Along With PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName xyz.example.com | |
ServerAdmin [email protected] | |
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