Browse Source
Also, correct vcsrepo so it is continuously deployed. Change-Id: Ibd06de25f0d277d7c8ccb652b50d6a44743934cdchanges/53/224353/2
3 changed files with 67 additions and 2 deletions
@ -0,0 +1,11 @@
|
||||
import os |
||||
import sys |
||||
|
||||
path = '/usr/local/odsreg' |
||||
if path not in sys.path: |
||||
sys.path.append(path) |
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'odsreg.settings' |
||||
|
||||
import django.core.handlers.wsgi |
||||
application = django.core.handlers.wsgi.WSGIHandler() |
@ -0,0 +1,28 @@
|
||||
<VirtualHost *:80> |
||||
ServerName <%= scope.lookupvar("odsreg::vhost_name") %> |
||||
|
||||
WSGIScriptAlias / /var/www/odsreg/django.wsgi |
||||
Alias /media/ /usr/local/odsreg/cfp/static/ |
||||
Alias /static/admin/ /usr/share/pyshared/django/contrib/admin/media/ |
||||
|
||||
<Directory /usr/share/pyshared/django/contrib/admin/media> |
||||
Order deny,allow |
||||
Allow from all |
||||
</Directory> |
||||
|
||||
<Directory /usr/local/odsreg/cfp/static/> |
||||
Order deny,allow |
||||
Allow from all |
||||
</Directory> |
||||
|
||||
<Directory /var/www/odsreg> |
||||
Order deny,allow |
||||
Allow from all |
||||
</Directory> |
||||
|
||||
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/odsreg_error.log |
||||
LogLevel warn |
||||
CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/odsreg_access.log combined |
||||
ServerSignature Off |
||||
|
||||
</VirtualHost> |
Loading…
Reference in new issue