WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

WebSphere Application Server Liberty Profile index document root folder?

  • 1.  WebSphere Application Server Liberty Profile index document root folder?

    Posted Thu March 30, 2017 12:59 PM

    Hello,

    How do I do to point the Document Root from :9080, which is "/", to "/usr/netscape/html"?

    Please, help.

     

     Following below the server.xml's content:

          
        <server description="Tools">
        
            <featureManager>
                <feature>javaee-7.0</feature>
                <feature>adminCenter-1.0</feature>
                <feature>ssl-1.0</feature>
              <feature>jsp-2.3</feature>
           </featureManager>
                
        <basicRegistry id="basic">
        
                <user name="admin" password="adm"/>
                <user name="nonadmin" password="nonadm"/>
        
        </basicRegistry>
        
        <administrator-role>
        
                 <user>admin</user>
        
        </administrator-role>
            
            <httpEndpoint id="defaultHttpEndpoint" host="server1" httpPort="9080" httpsPort="9443"/>
                          
            <applicationManager autoExpand="true"/>
        
        <keyStore id="defaultKeyStore" password="passwdcrt"/>
        
        <remoteFileAccess>
           <writeDir>${server.config.dir}</writeDir>
        </remoteFileAccess>
        
        
            <httpDispatcher enableWelcomePage="true" appOrContextRootMissingMessage="...This page does not exist. Perhaps you want to confirm whether the website's address is right typed. Thank you."/>
            
            </server>   

     



          
       
        
           
                javaee-7.0
                adminCenter-1.0
                ssl-1.0
              jsp-2.3
          
                
       
        
               
               
        
       
        
       
        
                 admin
        
       
            
           
                          
           
        
       
        
       
           ${server.config.dir}
       
        
        
           
            
              





     



  • 2.  RE: WebSphere Application Server Liberty Profile index document root folder?

    Posted Fri March 31, 2017 09:48 AM

    There isn't a document root concept in Liberty, but you can use the web application concept and configure this:

    <webApplication location="/usr/netscape/html" contextRoot="/"/>