-1

I have an web application running on port 3000. f anybody wants to access, they need to access through http://thisdomain.com:3000/. I want to make the application accessible at http://thisdomain.com/.

I want to redirect default port to specific port (3000) which my application is running

How Can i do this ?

Jan
  • 31
  • 3
  • 8

1 Answers1

0

You will have to change your web server settings, where you define that the domain is running on port 3000 - default http port is 80 (in this case, no need to add :80 to the url).

another option is that your web server on default port :80 returns a HTTP REDIRECT that points to :3000

Christoph Bimminger
  • 1,006
  • 7
  • 25
  • In my case, This is an angular application running on NodeJs. How & where i can make changes ? – Jan Dec 20 '17 at 00:45
  • to change port from 3000 to 80, see e.g. here: https://stackoverflow.com/questions/12181253/changing-node-js-listening-port (use listen(80); to listen on port 80) – Christoph Bimminger Dec 20 '17 at 01:17
  • Currently my application is listen to 3000, i do not want change and i have code api.listen (3000). Issues is not with changing port #. if anybody wants to access, they need to access through http://thisdomain.com:3000/. I want to make the application accessible at http://thisdomain.com/. – Jan Dec 20 '17 at 20:21
  • does anybody have answer for this ? – Jan Dec 21 '17 at 22:01