integrate Plack::Middleware::ReverseProxy & nginx
http://wiki.nginx.org/NginxLikeApache
use this configuration.
server {
listen myhost:80;
server_name myhost;
location / {
root /path/to/myapp/public;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://myapp:8080;
}
}
Published: 2010-01-11(Mon) 15:33