[svlug] Multiple Web Servers on One IP
Sargun Dhillon
xbmodder at gmail.com
Thu May 29 15:55:55 PDT 2008
On Thu, May 29, 2008 at 3:07 PM, Chris Miller
<lordsauronthegreat at gmail.com> wrote:
> On Thu, May 29, 2008 at 2:58 PM, Sargun Dhillon <xbmodder at gmail.com> wrote:
>> Stop using some device that has a terrible queuing method. What might
>
> Yes, I'm sure that no one ever bothered to ponder the queuing
> mechanism in the Apache webserver. After all, it was made by a bunch
> of these "open-source" people. Not much better than a thousand
> monkeys banging on keyboards, really...
>
> It's first-come first-serve. I can't change that without making a
> custom build of Apache after having modified the Apache source code
> directly. Unless there's some set of Apache directives I'm not aware
> of (which would be great).
>
>> be better is to run the crappy backend on some port which is 80 bound
>> to 127.0.0.2 (add this address to lo). Then run the download server
>> bound to 127.0.0.3. Use a lighty frontend with mod proxy to make
>> /downloads go to 127.3 and /!downloads to go 127.2. Its just that
>> simple!
>
> So bind Apache to another lo and then have lighty mod_proxy to Apache,
> which will queue normally, and also have lighty serve downloads like
> there's no tomorrow on the other domain. They're domains, so it's
> really:
> http://www.fsdev.net/ <== web pages which eat memory like there's no tomorrow
> http://dl.fsdev.net/ <== files which download quietly, never eating
> crazy amounts of memory
>
> By turning the problem upside-down, it became solved. Who knew...
>
>> Alternatively you can tell apache to bind to a non-80 port and run a
>> mod_proxy frontend to sort between the ports.
>
> I do not want to use any non-80 ports, since I do not want to run into
> a restrictive firewall. I also don't want to run into any possible
> issues that may be caused by serving non-SSL pages and files through
> the SSL port (which would solve the problem and circumvent the wrath
> of the firewalls, but I may need SSL later, too!)
>
> --
> Registered Linux Addict #431495
> http://profile.xfire.com/mrstalinman | John 3:16!
> http://www.fsdev.net/ | http://lordsauron.wordpress.com/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chris.dot
Type: application/msword
Size: 467 bytes
Desc: not available
Url : http://lists.svlug.org/archives/svlug/attachments/20080529/848d1082/chris-0001.dot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chris.gif
Type: image/gif
Size: 15731 bytes
Desc: not available
Url : http://lists.svlug.org/archives/svlug/attachments/20080529/848d1082/chris-0001.gif
More information about the svlug
mailing list