aspose file tools*
The moose likes Tomcat and the fly likes How to access web pages on internet using tomcat or other webserver? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to access web pages on internet using tomcat or other webserver?" Watch "How to access web pages on internet using tomcat or other webserver?" New topic
Author

How to access web pages on internet using tomcat or other webserver?

prashant rajput
Greenhorn

Joined: Mar 24, 2006
Posts: 2
Hi

Can anybody explain it in brief..

with tomcat it is possible to access your pages with url
http://localhost:8080/somepage.jsp
How to access my webpage placed in tomcat directory on the internet ?
suppose my ip address is 79.185.7.16
is it possible me to see my page ...with url
http://79.185.7.16:somepage.jsp
if yes how..do I need to some configuration for it?
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
If the tomcat server is listening and responding on the same port (8080) then simply replace the word "localhost" with the IP address.
Kalpesh Patel
Greenhorn

Joined: Mar 27, 2006
Posts: 4
You can configure the HTTP Apache Server and redirect all the request coming for you application to the tomcat to handle. Like

ProxyPass /Your_Application_Name http://1.2.3.4:8080

Now, you can access you application as http://1.2.3.4/Your_Application_Name
Kalpesh Patel
Greenhorn

Joined: Mar 27, 2006
Posts: 4
Sorry I forget to mention that you need to need to have apache http server installed with proxy pass module and you need to add this in APACHE_HOME/conf/httpd.conf file
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to access web pages on internet using tomcat or other webserver?
 
Similar Threads
setting up my own website
webapp not on 8080 and html:base
Is it possible, More than one tomcat running in the one system?
accessing a web service
Using IPAddress and localhost