resin域名绑定

转自:http://c20031776.blog.163.com/blog/static/684716252013442485193/

<cluster id="serverwww">
    <root-directory>.</root-directory>
    <server-default>
      <jvm-arg>-Xmx2560m</jvm-arg>
      <jvm-arg>-Xss1m</jvm-arg>
      <jvm-arg>-server</jvm-arg>
      <!-- The http port -->
      <http address="*" port="8080"/>
    </server-default>
    <!-- define the servers in the cluster -->
    <server id="serverwww" address="127.0.0.1" port="6800">
    </server>
    <!-- the default host, matching any host name -->
    <host id="www.oplinux.com" root-directory=".">
      <web-app id="/" root-directory="/www/webroot/oplinux/"/>
    </host>
  </cluster

只需要在host id=这里加上需要绑定的域名即可,如果没有使用域名,
或是一台服务器只是开了一个RESIN的话,那么可以直接为空,域名直接解析到服务器的IP上即可.
以上专门为一个resin开多个实例,而实例需要用到域名,此时,又不想通过lighttpd或是nginx来代理的情况.

本文固定链接: http://oplinux.com/app/resin-domain.html | 游戏运维

Resin:

< host id =”channel.pengpeng.com” root-directory =”.” >
 
< host-alias > blog.pengpeng.com </ host-alias >
 
< host-alias > show.pengpeng.com </ host-alias >
 
< host-alias > photo.pengpeng.com </ host-alias >
 
< web-app id =”/” document-directory =”/usr/local/pengpeng/channel/” />
 
</ host >

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值