Koozali.org: home of the SME Server

Host web site redirection question - Resolved

gardnc

Host web site redirection question - Resolved
« on: May 13, 2005, 03:57:22 PM »
ProxyPass was needed and gave us this functionality:

We are using an SME 6.0.1 release for a gateway and server.  We would like to have a backup web site for our domain on the SME so that if the primary server fails or needs upgrading, we can use the SME temporarily and switch back to the primary site when it is back up.  Our reasoning here was that redirection would be as instantaneous as changing the host name record with no DNS propagation delays.

To accomplish this we created the backup site on the SME and pointed the DNS to our SME.  Then we modified the host name for www.mysite.com to use a remote, at 65.xxx.xxx.xxx and thought that would work.  Unfortunately from the public IP to the SME it just serves pages from the SME.  But on the local side the proxy server does redirect to the proper public server.  We have tried every combination of remote with/without global set.

I'm not sure that it should work as we thought or if we have made a mistake.  I can find no searches here on the forum that describe this scenario.  Has anyone any information on why this does not work as we expected.  Anyone familiar with a contribution that could help us accomplish this, or any other idea of how we could manage this kind of redirection in another way.

If anyone is aware of where the configuration files are maintained for the host names and redirected IPs, then that might be helpful for us.

Thank you for any help you can offer.

Larry

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
Host web site redirection question - Resolved
« Reply #1 on: May 14, 2005, 03:32:29 AM »
Larry,

Suggest you look at the ProxyPassReverse directive.

Use both ProxyPass (for your internal clients) and ProxyPassReverse (for inbound traffic). The arguments for both are identical.

Let me know if that fixes it.

Good luck.

John
...

gardnc

Host web site redirection question - Resolved
« Reply #2 on: May 14, 2005, 12:06:38 PM »
John - When your reply came in I had already installed the SME 5.6 ProxyPass RPM and it did the trick.  Apparently it writes those same directives and provides the client with a server manager CP to control it.  Thanks for taking the time to offer us some help.  Greatly appreciated.

Larry