Questions tagged [.htpasswd]

Password file format used on Apache web servers

47 questions
2
votes
1 answer

Why is my .htaccess and .htpasswd not working?

I have .htaccess and .htpasswd files in the directory that has png files that I want to protect. .htaccess AuthType Basic AuthName "Co to za nielegalne grzebanie w plikach, juz dzwonie na milicje." AuthUserFile ./.htpasswd Require…
Wungiel
  • 21
  • 1
1
vote
2 answers

.htaccess has no effect on subdirectory

I need to protect my whole website (It's just for development at the moment) with a password. So I created a .htaccess and a .htpassword file. The .htaccess contains AuthUserFile /my/absolute/path/.htpassword AuthName "Protected" AuthType…
Peni
  • 111
  • 5
1
vote
0 answers

Apache .htaccess and .htpasswd doesn't ask for password in Django site

I have a Django site with mod_wsgi configured, using Apache 2.4 as web server. Virtual Host: ServerName site.com ServerAlias site.com ServerAdmin example@example.com DocumentRoot /var/www/site
Caco
  • 113
  • 5
1
vote
0 answers

.httpasswd doesn't work breaks Yii .htaccess Rewrite Rules

I have a standard .htaccess for Yii 1.1, to which I added http based authorization. When I added the password protection, the Rewrite Condition RewriteCond %{REQUEST_FILENAME} !-f stopped working, and now static file requests are processed through…
Petruza
  • 285
  • 3
  • 9
1
vote
1 answer

HTTP Basic Auth unless connecting from the office with Apache 2.4?

We wish to set up a website for demo purpose only that we can: Access from anywhere from the internet by entering a username and password via HTTP Basic Auth. For ease of use we wish to not having to go through HTTP Basic Auth from the office,…
Machoke
  • 115
  • 8
1
vote
2 answers

Force https before authentification - no access to vhost

I am a beginner when it comes to servers and I have a problem similar to this one. When accessing the desired webpage, .htpasswd prompts me for an authentification before I am redirected to https. Is there any workaround solely by editing the…
aldorado
  • 113
  • 3
1
vote
0 answers

Password protect website

I'm trying to password protect my website from ONE ip address. I just want to restrict an ip from accessing my website, but still allow them to access it if they have the password. My current code .htaccess AuthType Basic AuthName "Login"…
Peter
  • 11
  • 1
1
vote
1 answer

Is the following .htpasswd .htaccess login SSL protected?

I have a directory that I have protected using .htpasswd/.htaccess HTTP authentication. In the .htaccess file for the directory I have this: SSLRequireSSL order allow,deny deny from all AuthUserFile…
columbo
  • 219
  • 1
  • 12
1
vote
2 answers

Apache authentication inside a WordPress install

I am currently running into an issue with trying to password protect a directory that is sitting inside a directory that's running WordPress. This is for a directory called "admin" that handles a few things outside of WP. In my WordPress .htaccess…
0
votes
1 answer

Limit directory index to authenticated users

Essentially what I am trying to do is to limit directory indexing to authenticated users from a htpasswd file on my Apache server. Here is what I have so far. AuthUserFile C:\XXXXXXXXX\htpasswd AuthGroupFile /dev/null AuthName "Password…
0
votes
0 answers

nginx http authentication with system user

I'm running a nginx server with basic http authentication that use a htpasswd password file. Is possible use instead the normal user and passwpord of linux system?
0
votes
1 answer

htaccess + htpasswd: how to prevent executing php scripts without specifying a password

My site is managed by Apache on Linux. In the base directory, there is the sub folder fill. In this subfolder, there is a php script: do.php Here is my .htaccess: AuthType Basic AuthName 'Welcome back' AuthUserFile…
0
votes
0 answers

htpasswd keeps asking for password - phpmyadmin

I am using Ubuntu 18.04 LTS Desktop to host an apache2 webserver. I installed phpmyadmin and wanted to secure it using htpasswd. There for I edited the /etc/apache2/conf-available/phpmyadmin.conf, adding AllowOverride All and restarted apache2. I…
mathmaniac88
  • 111
  • 1
  • 1
  • 7
0
votes
0 answers

.htpasswd username/password picked up but don't seem to work?

My intent is to have Jenkins behind apache. It uses a proxy-pass (for /) and I want it to be behind some basic auth. So I have set up an apache2, using digitalocean's tutorial as starting point. I have generated a .htpasswd file with…
0
votes
3 answers

How to remove .htaccess and/or htpasswd from vultr wordpress installation

I fired up a server on vultr and chose wordpress. It setup htpasswd on the admin login. How can I remove that? Here is the only .htaccess file I can find: # Only allow direct access to specific Web-available files. # Apache 2.2
webmagnets
  • 137
  • 1
  • 7