29. 自宅 ec2
Front
Apache 2.2
Amazon S3
App
Apache 2.2 with mod_perl
DB FS
MySQL 5 NFS
30. from httpd.conf on Front
<VirtualHost *:80>
ServerName twib.jp
DocumentRoot /home/yusuke/www/pulpsite/Twib/root
AllowEncodedSlashes On
RewriteEngine On
RewriteRule ^/(static/|favicon.ico) - [L]
RewriteRule ^/(.*)$ http://192.168.1.22:8102/$1 [P,L]
ExpiresActive On
<FilesMatch ".(jpg|gif|png|ico|css|js)$">
ExpiresDefault "access plus 365 days"
</FilesMatch>
</VirtualHost>
31. from httpd.conf on App
KeepAlive Off
LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
LoadModule rpaf_module /usr/lib/apache2/modules/mod_rpaf-2.0.so
RPAFenable On
RPAFsethostname Off
RPAFproxy_ips 192.168.1.11 127.0.0.1
Listen 8102
PidFile /var/run/apache2/twib.pid
StartServers 1
MinSpareServers 4
MaxSpareServers 12
MaxClients 24
MaxRequestsPerChild 10000
PerlSwitches -I/home/yusuke/www/pulpsite/Twib/lib
SetHandler perl-script
PerlHandler Twib::Web