• Post Reply Bookmark Topic Watch Topic
  • New Topic

question related to local host  RSS feed

 
ganesh pol
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • 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
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!