Rails Ugly Dispatcher iconRails 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...
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, 17:26 GMT
price:
FREE!
developed by:
Unbit
license type:
GPL (GNU General Public License) 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating 13

UNRATED
3.0/5
 

0/5

Add your review!

SUBMIT