If you are trying to set a custom URL name for your OpenShift application , I suggest editing the entry CNAMEinstead of hard-coding the entry A.
- Edit your domain’s CNAME record to indicate
<app>-<namespace>.rhcloud.com - Run the command
rhc alias add <app> <domain>(OpenShift creates a new VHost for your domain) - Wait for the DNS to propagate ( how long will it take )
URL PaaS ( cnames) .
IP- , OPENSHIFT_<cartridge>_IP:
rhc ssh <app> 'echo $OPENSHIFT_PHP_IP'
. , OpenShift.