Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / December 2003

Tip: Looking for answers? Try searching our database.

How to run Tomcat 5.0.16 as unprivileged user

Thread view: 
darin dimitrov - 08 Dec 2003 00:11 GMT
I downloaded Tomcat and tried to run it with startup.sh on port 8080
as an unprivileged user but it didn't work. When I do a port scan on
my machine, the port 8080 is not open but what is interesting is that
when I open the locatin http://localhost:8080/ my browser displays the
default tomcat site. But how can I access my site from distance like
http://mycompany:8080/
I can't run Tomcat as root on some on port 80 because I don't have
root privileges on the machine :)

   Moreover there is an Apache web server running on the port 80
configured to support user directories. I would like to redirect all
incoming requests from http://mycompany/~user/ to the tomcat web
server. If you know how can I do this, please help me. Thanks.
Mihai Osian - 12 Dec 2003 12:14 GMT
 Hi Darin,

  I'd say you have a firewall installed, which allows you to connect on
port 8080 from localhost, but not from the exterior. To access
http://mycompany:8080 from ext. you need to ask your sysadmin to open
that port for you.
 About Apache, you also need the sysadmin's help. First, you have to
load the "jk" or jk2" module into Apache, then configure it to redirect
requests to port 8080 or whatever, where an AJP connector of Tomcat must
be listening. Read the docs on jakarta.tomcat.org, section "JK" or
"Connectors". I don't think you can do it as a regular user.

Hope this helps,
Mihai

>I downloaded Tomcat and tried to run it with startup.sh on port 8080
>as an unprivileged user but it didn't work. When I do a port scan on
[quoted text clipped - 9 lines]
>incoming requests from http://mycompany/~user/ to the tomcat web
>server. If you know how can I do this, please help me. Thanks.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.