oupala / apaxy

a simple, customisable theme for your apache directory listing
https://oupala.github.io/apaxy/
GNU General Public License v3.0
1.86k stars 256 forks source link

combine with .htpasswd ? #87

Closed benjaminfrombe closed 5 years ago

benjaminfrombe commented 7 years ago

Hi,

I would like to combine apacy with basic authentication.

When I try to add:

AuthName "secure" AuthUserFile .htpasswd AuthType Basic Require valid-user

I get a server error ...

Any idea how to solve this ?

thank you,

Edd--

nicozimmermann94 commented 7 years ago

I guess apache cannot find your .htpasswd file. The path has to be absolute and not relative. So instead of AuthUserFile .htpasswd try something like AuthUserFile /var/www/html/mydir/.htpasswd

oupala commented 6 years ago

I managed to use apaxy in combination with an .htpasswd file. There is no conflict between them.

So there should be a solution to your problem. @edd--, have you tried @nicozimmermann94 solution?

oupala commented 5 years ago

As there is no answer from @edd--, I will soon close the issue.