How to load a configuration file only when the conf file exists in Apache httpd?

Solution Unverified - Updated -

Issue

  • How to load a configuration file only when the conf exists in Apache httpd?
  • If I specified the following "Include" directive in my httpd.conf, Apache httpd fails to start when the specfied conf file does not exist. How do I load the specified configuration file only when it exists?
Include conf.d/example_optional.conf

Environment

  • Apache httpd
    • 2.2
    • 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.