Questions tagged [http-basic-authentication]
256 questions
2
votes
1 answer
How to set auth_basic for one file in NGINX?
Here is my config:
server {
#...
location ^~ /wp-login.php {
auth_basic "Restricted";
auth_basic_user_file /var/www/.htpasswd;
}
location / {
try_files $uri $uri/…

Anthony
- 141
- 7
2
votes
0 answers
Is it possible to share a basic auth session between several aliases in nginx?
The title pretty much sums it up, we have a very simple virtual host setup in nginx protected by basic auth, so it looks like that:
server {
listen portnumber;
server_name *.domain.com;
location / {
root /var/www/mywebsite.com;
…

Artem Zhirkov
- 47
- 1
- 7
2
votes
1 answer
Why does mod_jk bypass Apache authorization?
Since switching from Apache 2.2 authorization gets bypassed for many JkMounts (except jk-status). If I cancel the browser password popup, I get a 401-page. It is not, as I expect, the one from Apache, but instead from JBoss, which it shouldn't…

Daniel
- 131
- 2
2
votes
0 answers
Basic auth not working in Apache 2.4
I know it seems a simple task and I did it many times for Apache 2.0-2.2 but in 2.4 config doesn't work.
I am trying to configure basic auth for directiry:
AuthType Basic
AuthName Documents
…

user3599934
- 21
- 1
- 2
2
votes
2 answers
Nginx - Apply basic auth only if an htaccess file exists
How can I apply basic auth only if an htaccess file exists?
If first tried to put the auth_basic directives in an if block, but
that is not allowed.
Then, I tried redirecting to a named location, but while the location with
basic auth works fine,…

surj
- 243
- 4
- 15
2
votes
1 answer
Basic Authentication doesn't display login box
I am using IIS 7.5 and want to change a website from using anonymous authentication to basic authentication. I access the Authentication feature, disable anonymous authentication then enable basic authentication. When I access the website I get the…

Kevin Brydon
- 101
- 9
2
votes
1 answer
Nginx auth only for given location
I'm using Nginx as a reverse proxy for a python WSGI web-app.
It looks something like that:
location / {
#auth_basic "Administrator Login";
#auth_basic_user_file /var/www/static/.htpasswd;
proxy_pass …

YardenST
- 255
- 2
- 3
- 7
2
votes
1 answer
Found special user in apache weblog called @^Y@.@{phqsp~{2'/2|pq{jvk@-1('@lvo)&1--1.(/1)'@./*
When checking the logfiles of some of my customers I found this as username for authenticated users. We have a .htusers file used for basic web auth, all other users in the serverlog I found in the .htusers, but not the…

P.S.
- 33
- 5
2
votes
2 answers
password protect only the home page
I'm trying to pwd protect only my home page with apache basic auth.
This seems to work on everything not just the hp
AuthType Basic
AuthName "heelooo?"
AuthUserFile /var/path/.htpasswd
Require valid-user
…

zeedre
- 121
- 4
2
votes
1 answer
How do I use my own web form with the ngx_http_auth_basic_module?
I want to capture the username and password with my own form and then use those values with the Nginx ngx_http_auth_basic_module,rather than having the default Nginx box that comes up, asking for username and password? I know how to create the…

DisgruntledUser
- 101
- 2
- 9
2
votes
2 answers
CentOS Apache: basic auth returning 403 instead of 401
I have three dirs in /var/www/html, one of them has .htacces with following:
Order Allow, Deny
Allow from all
AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName 'lalalal'
AuthType Basic
Require user lala
When sending request to that…

mkvcvc
- 125
- 5
2
votes
1 answer
Does IIS support HTTP basic auth and form auth at the same time?
preface: I am a web dev who knows apache servers quite well, but I have little to no knowledge of IIS or .NET
I work with a developer who has been avoiding a request to add a Basic Auth to a staging server running IIS for a while now. Today he…

user128996
- 23
- 3
2
votes
2 answers
apache2: Require valid-user AND allow all
I want to allow basic authentication, but not require it. All visitors -authenticated or not- should be able to acces a page (script) where the script can add special features for valid users.
So first try the basic authentication, if that fails,…

Roland684
- 21
- 1
- 2
2
votes
0 answers
Basic auth in IIS7 without impersonation
I have an IIS 7 site set up with its own app pool. The app pool is running as a specific user, and the site is set to run as the app pool identity.
I want to add basic-auth style protection to the site.
I've done this by disabling anon and enabling…

Andrew Bullock
- 201
- 1
- 2
- 13
2
votes
2 answers
How do I create a virtual host with basic HTTP auth?
This is what I have so far:
DocumentRoot "/PathToTheFilesThat/theserver/gives/access/to"
ServerName docs.mysite.com
ProxyPass / http://localhost:8808/
ProxyPassReverse / http://localhost:8808
Basically, I'm just…

NullVoxPopuli
- 305
- 1
- 4
- 13