Skip to content

Commit

Permalink
Add HttpProtocolOptions Unsafe to httpd.conf to allow clients with un…
Browse files Browse the repository at this point in the history
…derscores in hostnames
  • Loading branch information
ethan committed Aug 22, 2019
1 parent 6e4b9ed commit 54bc6cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sed -i "s/define( 'DB_COLLATE', '' );/define( 'DB_COLLATE', '' );\ndefine('JWT_A
sed -i "s/RewriteBase \//RewriteBase \/\nRewriteRule \^wp-json\/\(\.\*\) \/?rest_route=\/\$1 \[L\]\n/" /var/www/html/.htaccess
sed -i 's/RewriteRule \. \/index\.php \[L\]/RewriteCond %{REQUEST_URI} !\\\.sso\/\nRewriteRule \. \/index\.php \[L\]/' /var/www/html/.htaccess
sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
sed -i 's/IncludeOptional conf.d/*.conf/IncludeOptional conf.d/*.conf\nHttpProtocolOptions Unsafe/' /etc/httpd/conf/httpd.conf

0 comments on commit 54bc6cc

Please sign in to comment.