Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    Rails Ugly Dispatcher 0.2

    Download button

    No screenshots available
    Downloads: 660  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Unbit | More programs
    GPL / FREE
    July 20th, 2008, 17:26 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    Rails Ugly Dispatcher description

    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 !!!

    Product's homepage

      


    TAGS:

    web server | http server | httpd daemon | web | http | Rails

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM