Yusuke Wada is a web developer based in Yokohama. He has built around 10 small web applications and 10 adult websites using Perl, Catalyst, Mouse, jQuery and other technologies. He operates these sites using a mix of self-hosted and Amazon EC2 infrastructure. He monetizes the sites through advertising and affiliate programs. To optimize performance, he uses caching, CDNs, database tuning and other techniques.
1 of 50
Download to read offline
More Related Content
yusukebe in Yokohama.pm 090909
1. エロサイト管理者の憂鬱Ⅱ
- How I build, operate, monetize, and tune up small web applications -
yusukebe
Yokohama.pm
2009/9/9
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