cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Host

morphinof
Champ in-the-making
Champ in-the-making
Hello,

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="www.domain.com" 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"/>
        –>
</Host>

then i changed default host in server.xml:

<Engine name="Catalina" defaultHost="www.domain.com">

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

Any idee for solving this ?

Thanks a lot !
14 REPLIES 14

morphinof
Champ in-the-making
Champ in-the-making
ROOT.war still missing Smiley Sad

bremmington
Champ on-the-rise
Champ on-the-rise
I'm losing track of what you've done. Just rename "wcmqs.war" to be "ROOT.war".

morphinof
Champ in-the-making
Champ in-the-making
For now i didn't do anything wet, but after deploying wcmqs as ROOT app, i would like to deploy the actual ROOT application (tomcat manager) to recover it as another standard webapp (in example something like xx.xx.xx.xx:8090/tomcatmanager) but i dont have ROOT.war file in webapps folder.

bremmington
Champ on-the-rise
Champ on-the-rise
Normally Tomcat Manager is deployed at "/manager". Have you moved it to root? If so, just move it back again.

morphinof
Champ in-the-making
Champ in-the-making
No i didn't, i just realize that i made a mistake !  ^^

In fact i was refering to the default /ROOT content wich contain some files and a welcome page with a link to manager on the left menu Smiley Very Happy

Sorry about that !

I assume this content can be replaced by wcmqs because it's just a welcome page after all.

Thanks a lot !