Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the tomcat server is listening and responding on the same port (8080) then simply replace the word "localhost" with the IP address.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic