Usage of SetEnvIf directive in Apache HTTPD with logical conditions.

Solution Unverified - Updated -

Issue

  • How to use SetEnvIf without using grep to filter messages as stated in https://access.redhat.com/solutions/58285 containing two conditions. - Fulfil the request of not logging in access log when Remote_Host is 10.10.10.10 and User_Agent contains monitoring-plugins

Environment

  • Red Hat Enterprise Linux 6.x, 7.x
    • httpd
  • JBoss Web Servers
    • 2.x, 3.x (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