How to run different apps on single JBoss AS 6 instance behind different ports?

后端 未结 3 1218
耶瑟儿~
耶瑟儿~ 2020-12-19 06:43

I am coming from this SO however my case is not on Tomcat, but JBoss EAP 6. So suppose I have two web apps app1 and app2 running on JBoss AS 6:

  • app1 on h
3条回答
  •  别那么骄傲
    2020-12-19 07:30

    JBoss AS7 version of the configuration discussed in the answer for AS6 with multiple http connectors and a rewrite valve.

    --- standalone/configuration/standalone.xml.orig    1970-01-01 00:00:00.000000000 -0100
    +++ standalone/configuration/standalone.xml 1970-01-01 00:00:00.000000000 -0100
    @@ -257,9 +257,17 @@
             
             
                 
    +            
    +            
                 
                     
                     
    +                
    +                    
    +                
    +                
    +                    
    +                
                 
             
             
    @@ -293,6 +301,8 @@
             
             
             
    +        
    +        
             
             
             
    

    See also:

    • http://docs.jboss.org/jbossweb/7.0.x/config/http.html
    • https://docs.jboss.org/jbossweb/7.0.x/rewrite.html

提交回复
热议问题