Search

4.3. Custom HTTP Services

download PDF
With ERB templates you can expose cartridge services using an application's URL by placing the Apache configuration code in the httpd.d directory.
After OpenShift Enterprise runs the cartridge setup script, it processes each ERB template and writes the contents of the node's httpd configuration.

Example 4.7. A mongodb.conf.erb File

Alias /health <%= ENV['OPENSHIFT_HOMEDIR'] + "/mongodb/httpd.d/health.html" %>
Alias / <%= ENV['OPENSHIFT_HOMEDIR'] + "/mongodb/httpd.d/index.html" %>
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.