Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Apache Alias/Redirect Help

 
tumbleweed and gunslinger
Posts: 192
  • Mark post as helpful
  • send pies
  • 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!
 
It's a tiny ad. At least, that's what she said.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic