Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: htaccess, get it work with subfolders |
|
Author |
|
querry
Joined: 13 Mar 2015 Posts: 1 Location: sweden
|
Posted: Sat 14 Mar '15 20:31 Post subject: htaccess, get it work with subfolders |
|
|
im really newbie so.. i installed a clean apache2 version on raspberry.
htaccess / htpasswd work perfect if i edit default in
Code: | pi@raspberrypi /etc/apache2/sites-available |
and put
Code: | AuthUserFile /home/pi/.htpasswd
AuthName "SPEAK FRIEND AND ENTER"
AuthType Basic
require valid-user |
inside
Code: | <Directory /home/pi/www/> |
however... i dont like everyone having access to my sideprojects in subfolders, so i tried to setup .htgroup and put a .htaccess file inside each and remove the piece of code from /etc/apache2/sites-available/default
Code: | AuthUserFile /home/pi/.htpasswd
AuthGroupFile /home/pi/htgroup
AuthName "SPEAK FRIEND AND ENTER"
AuthType Basic
<Limit GET>
require group klubben
</Limit> |
but it seems not to work, suggestion what i can do? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 20 May '15 10:55 Post subject: |
|
|
Is AllowOverride set as an Option? |
|
Back to top |
|
|
|
|
|
|