# Minimal Reference Example
ServerRoot "/home/user/httpd"
<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
LoadModule perl_module modules/mod_perl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
DocumentRoot/home/user/httpd/htdocs
<Directory/>
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/home/user/httpd/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerAdmin you@example.com
DirectoryIndex index.html
DefaultType text/plain
TypesConfig conf/mime.types
HostnameLookups Off
ServerTokens Full
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Now for virtual servers
Listen 7188
Listen 7180
# First the 'Thin' Virtual Server
<VirtualHost *:7188>
CustomLog logs/access.log common
ErrorLog logs/error_log
LogLevel warn
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass/scripts http://localhost:7180/
ProxyPassReverse/scripts http://localhost:7180/
</VirtualHost>
# Now for the mod_perl enabled one
<VirtualHost *:7180 >
ErrorLog logs/perl_error_log
LogLevel warn
Include conf/mod_perl_app.conf
</VirtualHost>
where mod_perl_app.conf contains:
PerlRequire "/home/user/httpd/conf/startup.pl"
PerlModule MyApache::PrintEnv2
<Location/print_env2>
SetHandler modperl
PerlResponseHandler MyApache::PrintEnv2
</Location>
And PrintEnv2 is the printenv example off of the mod_perl website. Whilst I haven't given it a proper shake down yet, intially, as far as my linux based development environment goes ( the ports and directories might give this away ) it looks promising.
Thick/Thin Good? (Score:2)
How did your think/thin Apache2 experiment go? Google only found this journal entry, where have you seen this technique used before?
-- "It's not magic, it's work..."
Re:Thick/Thin Good? (Score:1)
I seem
Re:Thick/Thin Good? (Score:2)
I've seen the technique advocated a number of times, either a simple Apache front end or with a dedicated Squid proxy, and the a complex heavy Apache/mod_perl backend. I've never actually tried it myself, hence my interest in your experience.
My feeling was that as Apache shares mod_perl memory so to run Apache/mod_Perl in think/thin you'd need to run two instances rather than two virtual servers in the same instance, though I'd like to be proved wrong.
The kernel server you are think of is called TUX [redhat.com], an
-- "It's not magic, it's work..."
Re:Thick/Thin Good? (Score:1)
My gut feel was that I wouldn't save any memory by using the thick thin virtual server config ( though I probably ought to check ), but I'm a bit cautious when it comes to testing, and often have multiple versions of the same mod_perl app running on different apaches on the same physi
Re:Thick/Thin Good? (Score:2)
I'd be very interested in whatever conclusions you reach.
-- "It's not magic, it's work..."