Rails Ugly Dispatcher 0.2

Rails Ugly Dispatcher is a simple, pre-forking, fast (totally pure C), GPLv2 licensed web server aimed ONLY for Rails apps...

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.0/5 13
DEVELOPED BY:
Unbit
HOMEPAGE:
rugd.unbit.it
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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 !!!

Last updated on July 20th, 2008

#web server #http server #httpd daemon #web #http #Rails #server

Add your review!

SUBMIT