• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Make URL without port number in wild fly web service  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello... Could someone please tell me, what can I do to give my application a simple URL.
Right now I call my app with this URL -
http://localhost:8080/abc
I would like to call it with this URL -
http://localhost/abc
I want to deploy it in WildFly10 web server.
Any suggestion would be appreciated. Thanks.
 
Marshal
Posts: 24464
55
Eclipse IDE Firefox Browser MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to configure your WildFly server to listen on port 80 instead of port 8080. Since port 80 is the default port for the HTTP protocol, it's unnecessary to specify the port in the URL if port 80 is intended.
 
Anand Maheswar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Paul for your reply..
I am not that familiar with WildFly..
Could you please tell me how would I configure my WildFly server to listen on port 80 instead of port 8080..
I have specified the port number in xml file- wildfly-10.0.0.Final\standalone\configuration\standalone.xml
So how would I edit that file??
Thanks in advance..
 
Paul Clapham
Marshal
Posts: 24464
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not at all familiar with WildFly, but as you can see the question and its answer are independent of what server you're using.

But as for how to edit a file, my first instinct is to suggest using a text editor since it's a text file... but surely your question didn't mean that?
 
Anand Maheswar
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah I didn't mean that..
I asked whether I had to change 8080 to 80 or not to mention the port number..
Anyway I changed the port number to 8080 to 80 and it works!!!
Thank you Paul..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!