Changing the Site Document URL to a different path

In this example configuration, the sitedoc is set and open in several locations with different modes.

  1. Local mode connect to the Host Server.
  2. Modify the site_doc_dest_folder configuration in the site's siteInfo file. In this example, C:\cloverleaf-hs\cis19.1\integrator is the HCIROOT. One of the site's name is new.
  3. Put the sitedoc folder in the C:\cloverleaf-hs\cis19.1\integrator\web path.
  4. Configure this path in the siteInfo of the new site. The configuration is site_doc_dest_folder=C:\cloverleaf-hs\cis19.1\integrator\web\sitedoc.
  5. Put the sitedoc folder in path E:\folders\sitesiteInfo of the new site. The configuration is and configure this path in the site_doc_dest_folder=E:\folders\site\sitedoc.
    Example siteinfo file:
    monitord4stats2dbinterval=900
    monitord4stats2dbschema=host,site,processes,threads,interthreads
    monitord4stats2dbsizecycle=40960
    #site_doc_dest_folder=C:\cloverleaf-hs\cis19.1\integrator\server\tomcat\webapps\sitedoc
    #site_doc_dest_folder=C:\cloverleaf-hs\cis19.1\integrator\web\sitedoc
    site_doc_dest_folder=E:\folders\site\sitedoc
    
  6. Remote connect to the Host Server. For this, the new configuration is added in $HCIROOT/server/tomcat/conf/server.xml.
    • Context docBase="../../../web/sitedoc" path="/sitedoc" reloadable="true"/> is added in server.xml,
    • docBase is the sitedoc path.
    • path="/sitedoc" is fixed.
  7. Restart the Host Server. Tomcat starts successfully.
  8. The other path is <Context docBase="E:/folders/site/sitedoc" path="/sitedoc" reloadable="true"/> . This also needs a Host Server restart.
    Example server.xml file:
    </Realm>
    
    <Host appBase="webapps" autoDeploy="true" name="hostname" unpackWARs="true"
    	<Context docBase="../../../docs" path="/cldocs" reloadable="true"/>
    
    	<!--<Context docBase="../../../web/sitedoc" path="/sitedoc" reloadable="true"/>-->
    	<Context docBase="E:folders/site/sitedoc" path="/sitedoc" reloadable="true"/>
    	<Context docBase="/" path=""/>
    	<!– SingleSignOn value, share authentication between web applications
  9. If Tomcat does not start, then open the Catalina log in HCIROOT/server/tomcat/logs and print the error message. Check whether the path is invalid.