Multiple Subdomains in Apache / Tomcat with mod_jk

前端 未结 1 1952
甜味超标
甜味超标 2021-01-20 15:51

I am currently trying to setup two subdomains for two separate applications running from one Tomcat server and I am having a hard time getting it going.

Without the

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-20 16:12

    Add this to your Apache web server config:

    
        ServerName youtrack.url.com
        JkMount / tomcat
        JkMount /* tomcat
    
    
    
        ServerName confluence.url.com
        JkMount / tomcat
        JkMount /* tomcat
    
    

    And this to your Tomcats server.xml:

    For a single webapps directory (applications deployed with their domain names, see "docbase"):

    
        
    
    
    
        
    
    

    For separate webapps directories (applications deployed as "ROOT"):

    
    
    

    0 讨论(0)
提交回复
热议问题