Grails and Subdomains

后端 未结 3 1448
南旧
南旧 2021-02-04 19:12

Does Grails know anything about sub-domains (i.e. subdomain.domain.com) ? I don\'t see it discussed in the manual. Is this purely an app server/web server issue? Can be ti

3条回答
  •  鱼传尺愫
    2021-02-04 19:22

    We run a few Grails apps on a single host using various sub domains. In all cases we use Apache to front the Tomcat server and use mod jk or forward proxy to handle the applications to the different Grails app. Most of it is rather straight forward, what we have not figured out is running the applications at the root level for the various domains, for instance - http://app1.domain.com instead of http://app1.domain.com/app1

提交回复
热议问题