• 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
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Setting default port

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I have installed the Tomcat server in my PC. After I start the server, I need to type http://localhost:8080/index.jsp in my browser to see the page.

Could there be any setting where in I type just http://localhost then it redirects to my index page where i do not need to specify the port address

Thanks,
aakash
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set this in TOMCAT_HOME/conf/server.xml

Just search for "8080" and you'll find the section
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you can change the port number in TOMCAT's server.xml. Where exactly in the server.xml, I am not sure. Just be carefull modifying the server.xml.

Just look for "8080" and change it to "80"
 
reply
    Bookmark Topic Watch Topic
  • New Topic