NginxHttpAuthBasicModule with Sinatra & Passenger

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


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

server {
      listen 80;
     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:,66586,185612#msg-185612

More information about the nginx mailing list