You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anthony Scott <as...@interaccess.com> on 2001/06/03 23:50:23 UTC

Tomcat-3.2.1 and JSP

>

Can anyone tell me how to setup Apache/Tomcat to run  *.jsp under public_html.




Tony




Re: authentication

Posted by wachi <wa...@sci.kku.ac.th>.
Hello Boris,

Monday, June 04, 2001, 4:54:43 AM, you wrote:

BG> When I am hitting admin application
BG> http://localhost:8080/admin/contextAdmin/contextAdmin.html, it tries to
BG> authenticate me, but does not accept pairs from tomcat-users.xml. Can somebody
BG> explain me how to use this app?
BG> --------------
BG> <tomcat-users>
BG>   <user name="tomcat" password="tomcat" roles="tomcat" />
BG>   <user name="role1"  password="tomcat" roles="role1"  />
BG>   <user name="both"   password="tomcat" roles="tomcat,role1" />
BG> </tomcat-users>

A contextAdmin.htm using  admin roles you must create admin user.

<tomcat-users>
 <user name="admin" password="tomcat" roles="admin" />
</tomcat-users>


-- 
Best regards,
 wachi                            mailto:wachi@sci.kku.ac.th


Re: authentication

Posted by Charles Baker <ra...@yahoo.com>.
I searched the list archives and found that there
needs to be a user with role=admin like so:

   <user name="admin"   password="some_hard_password"
 roles="admin" />

Also, in the server.xml the admin context should have
trusted="true" and password="some_hard_password", the
same as the one in the tomcat-users.xml file for
admin.

It works for me now.

--- Boris Garbuzov <bo...@borealissoft.com>
wrote:
> When I am hitting admin application
>
http://localhost:8080/admin/contextAdmin/contextAdmin.html,
> it tries to
> authenticate me, but does not accept pairs from
> tomcat-users.xml. Can somebody
> explain me how to use this app?
> --------------
> <tomcat-users>
>   <user name="tomcat" password="tomcat"
> roles="tomcat" />
>   <user name="role1"  password="tomcat"
> roles="role1"  />
>   <user name="both"   password="tomcat"
> roles="tomcat,role1" />
> </tomcat-users>
> 
> 


=====
-
rascharles@yahoo.com
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

authentication

Posted by Boris Garbuzov <bo...@borealissoft.com>.
When I am hitting admin application
http://localhost:8080/admin/contextAdmin/contextAdmin.html, it tries to
authenticate me, but does not accept pairs from tomcat-users.xml. Can somebody
explain me how to use this app?
--------------
<tomcat-users>
  <user name="tomcat" password="tomcat" roles="tomcat" />
  <user name="role1"  password="tomcat" roles="role1"  />
  <user name="both"   password="tomcat" roles="tomcat,role1" />
</tomcat-users>