WLP :: Change default context root on http

前端 未结 2 878
夕颜
夕颜 2021-01-23 04:33

When I do a http get on my websphere liberty profile v8.5.5 (let\'s assume http://my.domain.com) I\'m presented with a nice page that says amongs other things \"Welcome to the W

2条回答
  •  误落风尘
    2021-01-23 05:22

    You can turn that page off by adding the following to your server.xml file:

    
    

    http://www-01.ibm.com/support/knowledgecenter/api/content/nl/en-us/SSRTLW_9.0.0/com.ibm.websphere.wlp.nd.multiplatform.doc/autodita/rwlp_metatype_4ic.html#mtFile119

    edit:

    I should clarify, the other answer is also correct. If you install an application with "/" as the context root, it will be used instead of the main page.

    If you add something like the following to that application's web.xml:

    
        Some constraint
        
            All
            All URLs
            /*
        
        
            All users
            User
        
        
            CONFIDENTIAL
        
    
    

    You will get the https redirect that you're asking for.

    Additional edit (per comment), the following is a more complete example of how to set up the redirect: How to make "HTTPS redirect" work on WebSphere Application Server Liberty Profile?

提交回复
热议问题