Apache fails to start after setting mod_headers Header directive when using X-Frame-Options

Solution Verified - Updated -

Issue

  • Added a Header directive, 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content