NginxHttpAuthBasicModule with Sinatra & Passenger

artemka nginx-forum at nginx.us
Fri Mar 25 15:50:00 MSK 2011


Hi!

You must add passenger_enabled option inside location block.
This must looks like:

server {
      listen 80;
      server_name mysite.com;
     root /home/me/live/mysite_home/public;
     passenger_enabled on;
 
       location /mypage  {
         passenger_enabled on;

         auth_basic            "Restricted";
         auth_basic_user_file  htpasswd;
       }
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,66586,185612#msg-185612




More information about the nginx mailing list