Apache fails to start after setting mod_headers Header directive when using X-Frame-Options
Issue
- Added a
Headerdirective, similar to the one below, that has a space in the header value (space between "ALLOW-FROM" and the URI).
Header always append X-Frame-Options ALLOW-FROM http://test.redhat.com
- Apache will not start and logs the following error
Syntax error on line 6 of /etc/httpd/conf/httpd.conf:
error: envclause should be in the form env=envar
Environment
Apache web server (httpd)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.