This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Using Tomcat as a web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Using Tomcat as a web server" Watch "Using Tomcat as a web server" New topic
Author

Using Tomcat as a web server

leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Hi everyone,
I have some experience using Tomcat 4.0.6 to run JSP pages on my computer using the localhost:8080 on my personal network.
Can someone point me in the direction as to what I need to view these jps pages from the www?
The bunkhouse recommends the text "Professional Apache Tomcat". Does it explain how to do this?
[ May 06, 2003: Message edited by: leo donahue ]

Thanks, leo
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Hi Leo,
Unless you are going to setup one of your servers to be available 24x7, you will need to setup an account at an ISP that provides JSP Hosting.
Try having a look at Servlets.com ISP List for a list of ISPs who provide JSP hosting. The level of service that you need will depend upon how active your site is and whether you need total control over the Tomcat server or are prepared to run withing a shared Webserver.
HTH
Andy Bowes


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Hi Andy,
Thanks for the info.
Setting up a server is what I am interested in experimenting with, kind of like the guy from peoria, IL who hosts for free on that link you provided.
Where can I find information on how to set up a server like this?
Joe Broderick
Greenhorn

Joined: Apr 23, 2003
Posts: 23
if you have an internet connection of any kind, you are already on the web! if you have windows 2000 or xp, open a command window (start... run... "commmand"), and type "ipconfig". this will tell you what your ip address is. to test it, start tomcat, then type in http://yourIpAddress:8080/yourJsp, and you can see what the rest of the world will get.
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Hi Joe,
I tried what you said....very cool. I didn't know that would work. Hackers are going to love me, as I have no clue as to how to secure this site, aside from shuting down Tomcat.
This is something that I have been wanting to get experience in on my own, so most of my questions are probably not JSP related so much as to what else I need to know or where to go from here.
Joe Broderick
Greenhorn

Joined: Apr 23, 2003
Posts: 23
i would go to a local bookstore and find a book on tomcat so you can set up some basic security. there is a web.xml file and a server.xml file which you can change entries to make your website password protected (change the default passwords). you can also change the port tomcat listens to, so hackers can not just guess port 8080. the other thing i would do is get a firewall set up. and secure any sharing on your pc (close port 445 if you have windows 2000). those are a few things i would look into. but if someone already got in your pc, chances are they have a backdoor set up.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi.
Actually they cannot simply get to your server computer on port 8080 by simply entering
http://xxx.yy.zzz.ttt:8080/index.jsp
b'cos most of the time, ISP s assign PROXY IPs.. hey are not unique...
 
jQuery in Action, 2nd edition
 
subject: Using Tomcat as a web server
 
Similar Threads
Can I view my .jsp files from outside of my Tomcat directory?
tomcat3 with Log4j
I Can not access my welcome file, frame.jsp?
Tomcat alone vs Apache/Tomcat
Classes12.zip