Rails Ugly Dispatcher (RUgD) is a simple, pre-forking, fast (totally pure C), GPLv2 licensed web server aimed ONLY (and ONLY) for Rails apps deployment.
Usage:
./rugd -w 10 -p 8017 testapp
...then configure mod_rewrite on Apache:
RewriteEngine On
RewriteRule ^/$ /index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:8017%{REQUEST_URI} [P,QSA,L]
... or go superfast with nginx:
location / {
root < app >/public;
proxy_set_header Host $http_host;
proxy_redirect false;
if (-f $request_filename/index.html) {
rewrite (.*) $1/index.html break;
}
if (-f $request_filename.html) {
rewrite (.*) $1.html break;
}
if (!-f $request_filename) {
proxy_pass http://localhost:< rugd_port >;
break;
}
}
...no need for proxy load balancer !!!
Product's homepage