cyter

mydomain.conf

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