+++ This bug was initially created as a clone of Bug #1054916 +++ Description of problem: For cartridges based on httpd, OpenShift administrators would like the ability to add to the httpd configuration used by all cartridges without having to create and maintain a custom cartridge to do so. The proposed method for doing this is to designate directories on the node where the administrator can just put .conf files to have them included in gear configurations. Steps to Reproduce: 1. Create perl, php, ruby, and python apps 2. Add directories /etc/openshift/cart.conf.d/httpd{,/perl,/php,/ruby,/python} and put a unique httpd directive in a conf file in each, e.g. put "SetEnv TEST_CART_CONF foo" in env.conf 3. For each app, add something that will demonstrate the change, e.g. that prints the env var(s). Push the change and ensure the app restarts (which should pull in the new httpd conf). Additional info: This covers httpd conf as well as cart-specific httpd conf. We'd like to do this for JBoss too but that is a little more complex approach.
https://github.com/openshift/origin-server/pull/4502
Check this issue on devenv_4248, After add the conf under /etc/openshift/cart.conf.d/httpd/php The env can be added and catched by the php script in web page. Move bug to verified.