Apache fails to start with Invalid command 'SetEnv'

Solution Unverified - Updated -

Issue

  • We're trying to use the SetEnv directive, but when we do, Apache fails to start with the following error:
Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration

Environment

  • Red Hat JBoss Enterprise Web Server
  • Red Hat Enterprise Linux
  • Apache 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