I would like to call http://myapp.dev in my web browser and "redirect" this call to http://myapp.dev:6547 or, like a proxy would do.

This way, I could have an Apache or nginx listening to 6547 without having to write the port in my web browser to reach MyApp locally hosted.


Is that possible with native Ubuntu/Linux tools to do this?

Solutions proposed

I've seen this post:

but I don't want to install nginx to do this.

I've also seen this post:

but iptables are cleaned each reboot and I want a persistent solution without having to install iptables-persistent package.

  • What about apache (to act as reverse proxy)? – Romeo Ninov Apr 25 '17 at 14:11
  • 2
    Possible duplicate of redirect port 80 to 8080 and make it work on local machine – heemayl Apr 25 '17 at 14:15
  • @RomeoNinov I would like to use a native package, not installing a new one, so same problem with Apacha than nginx... – darckcrystale Apr 25 '17 at 14:31
  • @darckcrystale, maybe you should redefine your understanding for "native" package as apache is native package in Ubuntu. Or use the idea in mentioned by heemayl question – Romeo Ninov Apr 25 '17 at 14:34
  • 1
    @RomeoNinov I am reading the post suggested by heemayl :) thanks for the Apache suggest, I shouldn't post my question here, I want a solution which works on most of Linux distributions, sorry... – darckcrystale Apr 25 '17 at 14:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.