Questions tagged [htpasswd]

64 questions
1
vote
1 answer

Lighttpd: htpasswd protection

i would use an htpasswd protection for an folder of my website. I use lighttpd an i have write the following code into the lighttpd.conf # Limit access to ispgen auth.backend = "htpasswd" auth.backend.htpasswd.userfile =…
hazelnut
  • 25
  • 1
  • 8
1
vote
2 answers

apache AuthBasic denying correct login

I created a vhost in apache with this config Alias /my /srv/my AuthType basic AuthName "private area" AuthBasicProvider file AuthUserFile /var/www/vhosts/my/mypass Require valid-user I enter the…
groovehunter
  • 243
  • 2
  • 7
1
vote
1 answer

Can htpasswd be used to restrict access to a URL rather than a specific folder?

I would like to restrict access to certain URLs with htpasswd files, rather than folders, is this possible? For example, I wish to restrict the URL: www.example.com/pages/id/227/Restricted_Page But allow access to other URLs such…
me_here
1
vote
1 answer

Is it possible to write an htpasswd file that redirects certain users to certain directories?

Assuming that I have a domain, say, mydomain.com and three directories under it call them dir1, dir2 and dir3, then is it possible to put an htpasswd file at the web root and have it redirect authenticated users to their respective directories (e.g.…
user41157
  • 189
  • 2
  • 9
1
vote
1 answer

Replace AuthUserFile with the password itself or reference a relative path to the folder

I have a PHP script that generates 100s of directories and in these directories contain CSV files. I'm able to protect these CSV files using AuthUserFile if it points to an absolute .htpasswd file, but I want to point to a custom generated .htpasswd…
1
vote
1 answer

Allow files to be listed when viewing a directory but protected (via HTTP authentication) when accessed directly

I created a password protected directory using .htaccess and .htpasswd, but the files don't show up when I go to the directory URL. I have this in my .htaccess: #Protect multiple files AuthName "Dialog prompt" …
0
votes
0 answers

Cannot Login to Apache server which is also FTP server?

I have created a .master-passwd file with help of htpasswd and also added few users with a password to the file. My Problem is that some users who were added later date can not access the FTP server. Why would FTP server access be unavailable and…
Pritesh
  • 1
  • 1
0
votes
0 answers

apache 2.4 exclude url

I need to configure apache in reverse proxy to have all url protected with password except url start with /app/test#/toto/xxxxx. I have a problem with the # in the url, if I test with other url without # and change the pattern it's ok. That's my…
diablo62
  • 1
  • 1
0
votes
1 answer

Enable Nginx authentication for a specific URL

I'm working with a control panel, and I need to put an authentication in admin access. I already created the user and password, the configuration of nginx this way: server { listen 443 ssl; server_name localhost; root /usr/local/pannel/www; gzip…
Clebson
  • 123
  • 2
  • 6
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
1 answer

Nginx location for sub-pages behind "?" url

I'm trying to put an htpasswd only for a group of sub-pages under this url: https://exemple.com/doku.php?id=staff So for instance this page should be include: https://exemple.com/doku.php?id=staff:modo I tried to do this in nginx: location ~…
poka
  • 135
  • 3
  • 13
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
0
votes
1 answer

AWStats in subdirectory of Wordpress shows 404 error when password protected

I am running (for a client) a Wordpress site on a CentOS/WHM/Apache 2.2 server, and within a subdirectory we have AWStats installed. Everything working fine until we apply password protection through the htaccess file. With password protection in…
GeoffAtkins
  • 261
  • 2
  • 9
0
votes
0 answers

phpMyAdmin asks for BasicAuth

When accessing the phpMyAdmin link (mydomain.com/phpMyAdmin/), I am being prompted with a BasicAuth pop-up. The phpMyAdmin/config.inc.php does not overwrite any defaults, therefore the config.default.php is used, which has auth_type set as…
0
votes
2 answers

Sudo command refused (htpasswd) - CentOS / Apache (htaccess)

I want to give one of the web developers testuser permission to set his own .htpasswd password using the /usr/bin/htpasswd command on the web server 'mywebserver'. The web server tree belongs to the wwwadmin user, who therefore owns the .htpasswd…
user67073
  • 19
  • 2