Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Anand Maheswar
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.
 
Paul Clapham
Sheriff
Posts: 22265
38
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
Sheriff
Posts: 22265
38
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..
 
Die Fledermaus does not fear such a tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!