AnsweredAssumed Answered

Virtual Host

Question asked by morphinof on Jun 14, 2011
Latest reply on Jun 14, 2011 by morphinof

Simple question about virtual hosting in tomcat, actually my wqs website adress is : xx.xx.xx.xx:8090/website and i wan to configure tomcat to redirect xx.xx.xx.xx:8090 (the actualy tomacat homepage, webapps folder and ROOT website) to this website without adding /website.

Unfortunatly there is not httpd.conf file to edit virtuals hosts so i tried to add host in server.xml file as following :

<Host name="" appBase="webapps/website" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

        <!– SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html –>
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />

        <!– Access log processes all example.
             Documentation at: /docs/config/valve.html –>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>

then i changed default host in server.xml:

<Engine name="Catalina" defaultHost="">

finally i made a copy of the folder C:\Alfresco\tomcat\conf\localhost and rename it "" and result was an error 500 after restarting tomcat.

Any idee for solving this ?

Thanks a lot !