Thank´s, It´s works fine to my case.

On Wed, Jan 16, 2013 at 9:40 PM, Mark Eggers <its_toas...@yahoo.com> wrote:

> On 1/16/2013 4:22 PM, Leonardo Torres wrote:
>
>> My apologies, I dispatched to the list, before completing the question.
>> Let
>> me start again, please!
>>
>> 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. I tried
>> to
>> configure the server.xml file, using the Host tag, but domain independent,
>> always load the same application.
>>
>> 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>
>>
>>        <Host name="www.painel.portal.com" appBase="ptt"
>>              unpackWARs="true" autoDeploy="true">
>>        <Context path="" docBase="ptt-manager/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>
>>
>> In this case, always load the ptt-client/ROOT application.
>> Any tutorial ?
>>
>> Thank´s.
>>
>>
>> On Wed, Jan 16, 2013 at 4:18 PM, Mark Thomas <ma...@apache.org> wrote:
>>
>>  On 16/01/2013 19:04, Leonardo Torres wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I use tomcat 7.0.34 and I惴 trying to configure a domain and a subdomain,
>>>> but I don愒 have sucess yet.
>>>>
>>>
>>> Read this:
>>> http://www.catb.org/esr/faqs/**smart-questions.html<http://www.catb.org/esr/faqs/smart-questions.html>
>>>
>>> Mark
>>>
>>
> An old article, but still quite valid.
>
> http://wiki.apache.org/tomcat/**TomcatDevelopmentVirtualHosts<http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts>
>
> It says development, but this structure works fine for production.
>
> . . . . just my two cents.
> /mde/
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tomcat.**apache.org<users-unsubscr...@tomcat.apache.org>
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Obrigado
Leonardo Torres.

Reply via email to