VirtualHost/Subdomain Redirect Help

Discussion in 'Apache' started by antwonw, Mar 12, 2013.

  1. #1
    I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I am, however, having great difficulties doing this.

    I have setup my server with DDYNS through my domain name registar.

    Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

    I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.

    My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)

    This is annoying for others to type out and I am just wanting to make it look pretty. Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

    Thanks!
     
    antwonw, Mar 12, 2013 IP
  2. cesurasean

    cesurasean Active Member

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Try using apache's reverse proxy. - http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
     
    cesurasean, Nov 24, 2013 IP