Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200077 - www-servers/apache - running several apache instances
Summary: www-servers/apache - running several apache instances
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Lowest enhancement
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 13:25 UTC by Pavel Stratil
Modified: 2007-11-29 19:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Stratil 2007-11-23 13:25:42 UTC
It is not that uncommon that people require two apache (differently configured) instances running side by side on a single machine. The most common reason to do so is performance. A typical setup would be:
- a lightweight apache with only few modules loaded with mod_proxy
- apache with scripting modules (i.e. php)
The lightweight apache listens on port 80 and servers static content such as images, text files or binaries and proxies all requests on php files to the other apache. On a high traffic server this does save LOTS of memory (one usually has keepalive set to something like 5 seconds. with apache with mod_php enabled serving an image equals to process consuming 5-20MB, a lightweigt apache needs ~1MB)
Sofar AFAIK this can be done only by having an additional modified init script which is kinda ugly. It would be cool to have some standardized more elegant way of handling this as it is, for example, in the mysql package...

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-23 14:31:40 UTC
Yeah feel free to attach a patch... :)
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2007-11-29 19:01:50 UTC
i don't think we can/will/want do this in the near future ...