• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Apache Alias/Redirect Help

 
tumbleweed and gunslinger
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all!
Got a situation I can't seem to find a solution for...
I have two seperate web servers running on a single box, one on port 80 (my main Apache installation) and another (third party---Don't ask) on port 81, same machine.
Currently, members have to hit port 81 directly via the URL. ex: http://mydomain.com:81
What I'd like is to somehow have them hit Apache on port 80, ex: http://mydomain.com, and then internally, have Apache redirect requests (based on the virtual host name) to the other domain/IP, port 81.
So, in a nutshell: user types
http://mydomain.com
and Apache redirects requests based on virtual host mydomain.com to
http://192.168.1.105:81.
I've tried a simple redirect, but the address/URL changes in the users browser and displays the new port, which I don't want to do.
I've also tried various DNS/router settings and can't seem to get it right.
Any ideas are GREATLY appreciated!
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic