HAProxy and 2 webservers

Posted by enrico on Server Fault See other posts from Server Fault or by enrico
Published on 2012-04-06T08:26:45Z Indexed on 2012/04/06 11:33 UTC
Read the original article Hit count: 259

I have a website that is split into two different servers:

  1. chat server in node.js
  2. normal website (lighttpd + php + whatever)

now, I have set HAProxy in the same machine as node.js chat, so that when my website is accessed, it will redirect to the chat login. (Eg: mysite.com/messenger)

What I want to do now is to put a link on the chat page to send to the other part of the website which has a normal files tree, like home.php, photos.php, settings.php, etc. but I really have no clue how this whole redirection works.

Also, what about URL rewriting? If I have like info.php?item=phone and want to change it to mysite.com/phone ... is this something I should do with HAProxy or with lighttpd?

Thanks in advance.

© Server Fault or respective owner

Related posts about redirect

Related posts about amazon-web-services