1

Problematic

I would like to call http://myapp.dev in my web browser and "redirect" this call to http://myapp.dev:6547 or http://127.0.0.1:6547, 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.

Question

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.

7
  • What about apache (to act as reverse proxy)? Commented Apr 25, 2017 at 14:11
  • 2
    Possible duplicate of redirect port 80 to 8080 and make it work on local machine
    – heemayl
    Commented Apr 25, 2017 at 14:15
  • @RomeoNinov I would like to use a native package, not installing a new one, so same problem with Apacha than nginx... Commented Apr 25, 2017 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 Commented Apr 25, 2017 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... Commented Apr 25, 2017 at 14:48

0

You must log in to answer this question.

Browse other questions tagged .