-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Leonardo,

On 1/16/13 7:22 PM, Leonardo Torres wrote:
> I have one domain = www.portal.com I have one subdomain =
> www.painel.portal.com
> 
> Both domains are configured (DNS) I wish that when the user to
> enter www.portal.com, the appA was loaded. When the user enter
> www.painel.portal.com, the appB was loaded.

No problem.

> server.xml:
> 
> <Host name="www.portal.com" appBase="ptt" unpackWARs="true"
> autoDeploy="true"> <Context path="" docBase="ptt-client/ROOT"/> 
> <Valve className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs" prefix="localhost_access_log." suffix=".txt" 
> pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host>

Only one problem: You shouldn't be using server.xml to define
<Context>s. Instead, put your WAR file into ptt/ROOT.war and let it
auto-deploy. This will simplify your configuration.

> <Host name="www.painel.portal.com" appBase="ptt" unpackWARs="true"
> autoDeploy="true">

Problem: you have two hosts with the same appBase. This will prevent
you from having two separate ROOT webapps.

> <Context path="" docBase="ptt-manager/ROOT"/>

This will conflict with any ptt/ROOT.war file. See my comment above
for how to do this properly (i.e. don't use <Context> in server.xml).

> <Valve className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs" prefix="localhost_access_log." suffix=".txt" 
> pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host>

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlD4O9kACgkQ9CaO5/Lv0PCxTACfSS6ijyGHr52p+Fr5V+IausMZ
WFsAoIkiP2vP4aHRfs1q2HIB9Pz2riJz
=K92Q
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to