Change appBase to the absolute path 'c:\public_html'
Inside the appBase create a Directory ROOT (with capitals)

Regards,

Serge Fonville

On Tue, Nov 18, 2008 at 6:26 PM, <[EMAIL PROTECTED]> wrote:

> How do I configure server.xml for Tomcat to recognize the following setup?
>
> Tomcat is in
> C:\Program Files\Apache Software Foundation\Tomcat 6.0
>
> The application is in
> C:\public_html
>
> The directory structure of the application is
> C:\public_html\index.html
> C:\public_html\WEB-INF\
> C:\public_html\WEB-INF\web.xml
> C:\public_html\META-INF
> C:\public_html\META-INF\context.xml
>
> What should server.xml look like?
>
> I tried the following, but it did not work.  Upon navigating to "
> http://localhost"; or "http://localhost/index.html"; the error message is:
> The requested resource () is not available.
>
> It seems the the problem might be the directory structure, and appBase, and
> docBase.
>
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>   <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on"/>
>   <Listener className="org.apache.catalina.core.JasperListener"/>
>   <Listener
> className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
>
>   <Service name="Catalina">
>
>      <Connector port="80" protocol="HTTP/1.1"
>                 address="127.0.0.1" connectionTimeout="20000"
>                 redirectPort="443"/>
>
>      <Connector port="443" protocol="HTTP/1.1" address="127.0.0.1"
> SSLEnabled="true"
>                 reads="150" scheme="https" secure="true"
>                 clientAuth="false" sslProtocol="TLS"
>                 keystoreFile="conf/testkeys"
>                 keystorePass="test12"/>
>
>      <Engine name="Catalina" defaultHost="localhost">
>
>         <Host name="localhost"  appBase="/public_html"
>               unpackWARs="true" autoDeploy="true"
>               xmlValidation="false" xmlNamespaceAware="false">
>
>            <Context path="" docBase="/public_html">
>            </Context>
>
>         </Host>
>
>      </Engine>
>
>   </Service>
>
> </Server>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to