mardi 24 juin 2014

Editing httpd.conf (openshift.conf) to create an apache Alias


Vote count:

0




Is there a way to make a simple edit to (httpd.conf) with OpenShift?



`${HOME}php/configuration/etc/conf.d/openshift.conf`


I just need to make an apache directory alias (NOT a DNS alias) and define a directory with some permissions.




  1. I manually edited the file on rhc and restarted the app from my local command prompt. This overwrote my edited file with the default cartridge file when the restart was complete.


    $ rhc app restart




  2. Added some herdoc statements to my deploy script, commited the change, and pushed to rhc (I didn't think this would work but tried it just in case.)


    #.openshift/action_hooks/deploy cat << EOF >> ${HOME}php/configuration/etc/conf.d/openshift.conf all of my edits ... EOF




Is there a smarter way to do this or must I build my own cartridge to make a simple edit to httpd.conf?


Thanks for your help is much appreciated!


Jay



asked 3 mins ago






Aucun commentaire:

Enregistrer un commentaire