How to change the ROOT application?

后端 未结 13 1549
终归单人心
终归单人心 2020-11-22 16:16

I\'m trying to change the default application of a Tomcat 6 webserver to a different application than \"ROOT\" (inside webapps folder). What is the best way to do this?

13条回答
  •  盖世英雄少女心
    2020-11-22 16:40

    Not a very good solution but one way is to redirect from the ROOT app to YourWebApp. For this you need to modify the ROOT index.html.

    
        
            Redirecting to /YourWebApp
        
        
        
    
    

    OR

    
        
            Redirecting to /YourWebApp
            
        
        
        
    
    

    Reference : http://staraphd.blogspot.com/2009/10/change-default-root-folder-in-tomcat.html

提交回复
热议问题