Merge "Horizon: HTTP Verb Tampering vulnerability fix"
This commit is contained in:
commit
653ee1330b
horizon
@ -27,6 +27,8 @@ function start () {
|
|||||||
# wsgi/horizon-http needs open files here, including secret_key_store
|
# wsgi/horizon-http needs open files here, including secret_key_store
|
||||||
chown -R horizon ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/
|
chown -R horizon ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/
|
||||||
|
|
||||||
|
a2enmod rewrite
|
||||||
|
|
||||||
if [ -f /etc/apache2/envvars ]; then
|
if [ -f /etc/apache2/envvars ]; then
|
||||||
# Loading Apache2 ENV variables
|
# Loading Apache2 ENV variables
|
||||||
source /etc/apache2/envvars
|
source /etc/apache2/envvars
|
||||||
|
@ -74,6 +74,9 @@ conf:
|
|||||||
WSGIProcessGroup horizon-http
|
WSGIProcessGroup horizon-http
|
||||||
WSGIScriptAlias / /var/www/cgi-bin/horizon/django.wsgi
|
WSGIScriptAlias / /var/www/cgi-bin/horizon/django.wsgi
|
||||||
WSGIPassAuthorization On
|
WSGIPassAuthorization On
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{REQUEST_METHOD} !^(POST|PUT|GET|DELETE)
|
||||||
|
RewriteRule .* - [F]
|
||||||
|
|
||||||
<Location "/">
|
<Location "/">
|
||||||
Require all granted
|
Require all granted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user