• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

question related to local host

 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
normally we run our applications
<a href="http://<b rel="nofollow">localhost</b>:8080/EMS/jsp/Expense.jsp" target="_blank">http://localhost:8080/EMS/jsp/Expense.jsp

and other people in the network can acess my application by
<a href="http://<b rel="nofollow">ganesh</b>:8080/EMS/jsp/Expense.jsp" target="_blank">http://ganesh:8080/EMS/jsp/Expense.jsp

where ganesh is my machine name

is there is any way by which i can make any changes in tomcat and configure it in some way
so that instead of
<a href="http://<b rel="nofollow">ganesh</b>:8080/EMS/jsp/Expense.jsp" target="_blank">http://ganesh:8080/EMS/jsp/Expense.jsp
others(i.e people in the network)can acess my application like
<a href="http://<b rel="nofollow">Expense_management</b>/jsp/Expense.jsp" target="_blank">http://Expense_management/jsp/Expense.jsp
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whatever you write after http:// is the machine name (IP address) where server (application) is running. So if you are browsing from the same machine where server is running then you can give localhost there. If this is not the case then you will have to give IP address of machine where server is running.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two changes in your desired URL.
The first is the machine name.
You would need to set up some kind of DNS within your subnet to change that.

The other is the port number.
That you can change. See your server's documentation.
If you're running Tomcat, the change can be made from tomcat/conf/server.xml.
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic