While my site is in development I wish to add basic password protection. At the moment my .htaccess looks like this: AuthName "Restricted Area" AuthType Basic AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd AuthGroupFile /dev/null require valid-user .htpasswd exists and has an entry, yet I do not get a password prompt? Does Apache Auth work for dynamic resources or only static files? Many thanks :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
AFM wrote:> While my site is in development I wish to add basic password protection. > At the moment my .htaccess looks like this: > > AuthName "Restricted Area" > AuthType Basic > AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd > AuthGroupFile /dev/null > require valid-user > > > .htpasswd exists and has an entry, yet I do not get a password prompt?> > Does Apache Auth work for dynamic resources or only static files? > > Many thanks :)Any ideas? :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Bob Hutchison
2006-Sep-12 12:58 UTC
Re: .htaccess in public and adding password protection
On Sep 12, 2006, at 5:52 AM, AFM wrote:> > AFM wrote: >> While my site is in development I wish to add basic password >> protection. >> At the moment my .htaccess looks like this: >> >> AuthName "Restricted Area" >> AuthType Basic >> AuthUserFile /home/httpd/mydomain.co.uk/.htpasswdWhere is this file? Apache seems to refuse to use password files that are in a directory that it is serving content from. Cheers, Bob>> AuthGroupFile /dev/null >> require valid-user >> >> >> .htpasswd exists and has an ent > > ry, yet I do not get a password prompt? >> >> Does Apache Auth work for dynamic resources or only static files? >> >> Many thanks :) > > Any ideas? :) > > > -- > Posted via http://www.ruby-forum.com/. > > >---- Bob Hutchison -- blogs at <http://www.recursive.ca/ hutch/> Recursive Design Inc. -- <http://www.recursive.ca/> Raconteur -- <http://www.raconteur.info/> xampl for Ruby -- <http://rubyforge.org/projects/xampl/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---