Do you recommend one HOST for each user with especifically appBase ?

Thanks.

On Thu, Sep 24, 2015 at 6:18 PM, Manuel Parra <manupa...@gmail.com> wrote:

> Well Im using localhost and myserver.com as a server from I connect (URL).
> May be this a problem with HOST in server.xml?
>
> Regards.
>
> On Thu, Sep 24, 2015 at 6:02 PM, Manuel Parra <manupa...@gmail.com> wrote:
>
>> Yes.
>> This is my Configuration for the hosts in server.xml:
>>
>> <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy=
>> "true">
>>
>> ...
>>
>> <Listener className="org.apache.catalina.startup.UserConfig"
>> directoryName="public_html"  userClass=
>> "org.apache.catalina.startup.PasswdUserDatabase" />
>>
>> </host>
>>
>> Then at user's homes I have:
>>
>> /home/usertest/public_html/app.war
>>
>> But in http://localhost:8080/~usertest/     -->
>> HTTP Status 404 - /~usertest/
>>
>> Thanks in advance.
>>
>>
>>
>>
>> On Thu, Sep 24, 2015 at 3:41 PM, Aurélien Terrestris <
>> aterrest...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> first, you should check that the Host is configured with
>>> autoDeploy="true"
>>>
>>> 2015-09-24 14:07 GMT+02:00 Manuel Parra <manupa...@gmail.com>:
>>> > Hello I'm trying to deploy .war application from the public_html
>>> folder at
>>> > user homes.
>>> >
>>> > I've added directive to server.xml :
>>> >
>>> > <Listener className="org.apache.catalina.startup.UserConfig"
>>> > directoryName="public_html"
>>> > userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
>>> >
>>> > And I try :
>>> >
>>> > http://localhost:8080/~usertest/app
>>> >
>>> > And it return :
>>> >
>>> > 404 error
>>> >
>>> > Then I try :
>>> >
>>> > http://localhost:8080/~usertest/app.war
>>> >
>>> > It download app.war but it doesn't serve the app.
>>> >
>>> > User home contains folder :
>>> >
>>> > public_html/app.war
>>> >
>>> > So, what is the problem?
>>> >
>>> >  I'm using tomcat 7
>>> >
>>> > Thanks in advance.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>
>

Reply via email to