apache - Django + basic http auth -


I am using Django through the FastCGI. I have a non-negative part of my website and I have to preserve it with the original Apache proof. RefreshiGuin On Rewartbase / Reirerity ^ Media (. *) $ - [L] Revised Rule ^ SUPERSECRET (. *) $ - [L] Revised Rule ^ Images (

. *) $ - [L] Rewrite Rule ^ robots .txt $ - [L] Rev. Rule ^ (admin_media/.*)$ - [L] Rewrite Rules ^ (Remittance. .fcgi /.*)$ - [L] Remit Rules ^ (. *) $ Dispatch.fcgi / $ 1 [L]

then SUPERSECRET dir should not be processed by DJJA Dispatchers. If there is no proof then anything is fine, but when I add .htaccess to SUPERSECRET dir:

  AuthUserFile / home / user / site / SUPERSECRET / .htpasswd AuthName "User Area" requires a valid user  

I get a failed error error in 401 for login & amp; Password, how should I fix my config file? Thanks!

Not sure this will solve the problem, but Htpasswd should not remain in any directory that can be accessed from the web.


Comments