/ Published in: Apache
In this example:
*rewrite urls from domain.com to www.domain.com*
This is somewhat documented elsewhere, but not very well, so here's an example on how to perform simple URL rewriting with HAProxy (instead of using mod_rewrite with apache).
This works great if your servers use lighttpd, nginx, or anything that doesnt provide its own simple url rewriting.
*rewrite urls from domain.com to www.domain.com*
This is somewhat documented elsewhere, but not very well, so here's an example on how to perform simple URL rewriting with HAProxy (instead of using mod_rewrite with apache).
This works great if your servers use lighttpd, nginx, or anything that doesnt provide its own simple url rewriting.