Hello,
On Thu, Nov 02, 2000 at 11:22:16AM -0000, Frédéric Schwien wrote:
> Hi,
>
> is it possible to have a cluster with , say 1 http server for static pages
> and 2 Apache servers for dynamic pages ?
>
> ie, having a rule that sends requests with www.domain.com/cgi-bin to one of
> 2 servers , and other requests to a third server ?
>
> I do not think it is manageable only with linuxvirtualserver, since http
> appears in layer 5 , ... but then, does anybody have an advice to try to do
> it ?
As an alternative solution:
cluster on 2 hostnames
- cgi.domain.com
- www.domain.com
And then, either
1. -
* use absolute URLS / links in your HTML or whatever
* this may not be very nice, depending on your HTML or whatever
2. -
* get Apache to rewrite the URL www.domain.com/cgi-bin to cgi.domain.com/cgi-bin
* this will cause a double lookup of the www.domain.com/cgi-bin URL
- once as www.domain.com/cgi-bin
- second as cgi.domain.com/cgi-bin when it is finally served
Cheers,
Ben.
--
B. http://b.makelinux.org/ "Keep it real."
__________________________________________________________________________
My religion consists of a humble admiration of the illimitable superior
spirit who reveals himself in the slight details we are able to perceive
with our frail and feeble mind.
-- Albert Einstein
|