logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: htaccess, get it work with subfolders
Author
querry



Joined: 13 Mar 2015
Posts: 1
Location: sweden

PostPosted: Sat 14 Mar '15 20:31    Post subject: htaccess, get it work with subfolders Reply with quote

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

PostPosted: Wed 20 May '15 10:55    Post subject: Reply with quote

Is AllowOverride set as an Option?
Back to top


Reply to topic   Topic: htaccess, get it work with subfolders View previous topic :: View next topic
Post new topic   Forum Index -> Apache