Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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!
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic