Browse Source

Fix paths in apache configuration

Also add "Satisfy any" to make 2.4 happy.

Change-Id: Ie1e7007c0e2d90d8d83d91b97e4554b9daaba821
changes/05/225005/1
James E. Blair 7 years ago
parent
commit
de09adabf3
  1. 7
      templates/odsreg.vhost.erb

7
templates/odsreg.vhost.erb

@ -2,22 +2,25 @@
ServerName <%= scope.lookupvar("odsreg::vhost_name") %>
WSGIScriptAlias / /var/www/odsreg/django.wsgi
Alias /media/ /usr/local/odsreg/cfp/static/
Alias /media/ /usr/local/odsreg/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
Satisfy any
</Directory>
<Directory /usr/local/odsreg/cfp/static/>
<Directory /usr/local/odsreg/odsreg/cfp/static/>
Order deny,allow
Allow from all
Satisfy any
</Directory>
<Directory /var/www/odsreg>
Order deny,allow
Allow from all
Satisfy any
</Directory>
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/odsreg_error.log

Loading…
Cancel
Save