How to forward traffic to different internal server when request from a custom port

Discussion in 'Installation/Configuration' started by binaryrogue, Jul 30, 2018.

  1. binaryrogue

    binaryrogue Member

    Hi All,
    How do I configure ispconfig to forward traffic from a URL that is being requested on a custom port to a different internal server? For example, if going to http://www.mydomain.com, it routes to my main webserver of 1.1.1.1. If going to http://www.mydomain.com:88, I want it to route it to 1.1.1.2. Is this possible?

    -br
     
  2. sam117

    sam117 New Member

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^your\.domain\.name$ [NC]
    RewriteRule ^/(.*)$ http://newname:32400/web


    maybe subdomain redirect will be nice?
     
  3. You can use nginx proxy for http requests redirection on another Server
     

Share This Page