View Single Post
Old 03-12-2013, 02:02 AM  
Paz
Confirmed User
 
Paz's Avatar
 
Industry Role:
Join Date: Jun 2012
Posts: 457
Gottit working on my server in a folder www.carlparry.com/gfy/

Quote:
# Set exception for /gfy/index.html and set as variable AdminUri for use later
SetEnvIf Request_URI "^/gfy/index.*$" AdminUri

# Setup the password protection (standard folder protect)
AuthUserFile /home/xxxxxxxxxx/carlparry.com/gfy/.htpasswd
AuthName "GFY - folder protected"
AuthType Basic
AuthUserFile ./.htpasswd
Require valid-user

# Now add the exceptions for matched URL's index.html (not standard)
Order Deny,Allow
Deny from all
Allow from env=AdminUri
Satisfy any
Cheers,
Paz.
Paz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote