- 安裝DNS 套件
apt-get install bind9 - 加入一個zone
vim /etc/bind/named.conf.default-zones - 加入要解析的網址
vim /etc/bind/db.vcap.me - 只要修改DNS後,就可以直接開啟Browser連線(eg.test.vcap.me)
圖一 |
圖二 |
方法一:
- 先取得一組DNS Domain ( eg. test.no-ip.org )
- 修改cloudfoundry configcd /root/cloudfoundry/.deployments/rest/config/
sed -i 's/vcap.me/no-ip.org/g' *.yml - 加入 domain to /etc/hostsecho "127.0.0.1 api.no-ip.org > /etc/hosts"
- 重啟 cloudfoudry/root/cloudfoundry/vcap/dev_setup/bin/vcap_dev restart
- 重新連接targetvmc target api.no-ip.org
- 重新push app,然後直接開啟browser連到 test.no-ip.org即可
- 先取得一組DNS Domain ( eg. test.no-ip.org )
- 修改cloud_contorller.yml
vim /root/cloudfoundry/.deployments/rest/config/cloud_controller.yml - 重啟 cloudfoudry/root/cloudfoundry/vcap/dev_setup/bin/vcap_dev restart
- map to new uri
vmc map test test.no-ip.org - 重新push app,然後直接開啟browser連到 test.no-ip.org即可
...(ignore)
app_uris:
# Allow applications to register URIs that are outside your domain.
allow_external: true
# reserved_file:
# reserved_list: [www, test, dash, register, foo, bar]
# reserved_length: 3
...(ignore)
app_uris:
# Allow applications to register URIs that are outside your domain.
allow_external: true
# reserved_file:
# reserved_list: [www, test, dash, register, foo, bar]
# reserved_length: 3
...(ignore)
沒有留言:
張貼留言