4.3. Custom HTTP Services
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" %>