创建属于自己的opencms访问站点

http://opencms-wiki.org/MultiSite_configuration_instructions


STEP I:


Find the section of opencms-system.xml that looks like:

 <sites>
    <workplace-server>http://www.mysite.com:8080</workplace-server>
    <default-uri>/sites/default/</default-uri>
    <site server="www.mysite.com" uri="/sites/default/"/>
 </sites>

and add another site definition as follows:

   
<site server="www.mynewsite.com" uri="/sites/MyNewSite/"/>



STEP II:

In order for Tomcat to correctly route web requests to the correct site in OpenCms, we need to modify the server.xml configuration file, located in <tomcatroot>/conf.

Find the section of server.xml that looks like:

   <Connector port="8080" maxHttpHeaderSize="8192"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"
              connectionTimeout="20000" disableUploadTimeout="true" />

and add another connector definition as follows:

  
<Connector port="8081" maxHttpHeaderSize="8192"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"   
              proxyName="www.mynewsite.com" proxyPort="80"
              connectionTimeout="20000" disableUploadTimeout="true" />

你可能感兴趣的:(java,tomcat,Web,xml)