Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 # mydomain.conf
- 2 <VirtualHost *:80>
- 3 ServerName mydomain.com
- 4 ServerAlias www.mydomain.com
- 5 ServerAdmin admin@mydomain.com
- 6 #Redirect permanent / https://www.mydomain.com
- 7 DocumentRoot /home/ubuntu/apps/mydomain/app
- 8
- 9 # Logging
- 10 ErrorLog /home/ubuntu/apps/mydomain/logs/error.log
- 11 CustomLog /home/ubuntu/apps/mydomain/logs/access.log combined
- 12 LogLevel warn
- 13
- 14 WSGIDaemonProcess myapp user=ubuntu group=www-data threads=5 home=/home/ubuntu/apps/mydomain/
- 15 WSGIScriptAlias / /home/ubuntu/apps/mydomain/mydomain.wsgi
- 16 Alias /static /home/ubuntu/apps/mydomain/app/static
- 17
- 18 <Directory /home/ubuntu/apps/mydomain/>
- 19 WSGIProcessGroup myapp
- 20 WSGIApplicationGroup %{GLOBAL}
- 21 WSGIScriptReloading On
- 22 Order deny,allow
- 23 Allow from all
- 24 Require all granted
- 25 </Directory>
- 26 </VirtualHost>
Add Comment
Please, Sign In to add comment