Jump to content

Alias if auth, help!


Recommended Posts

Ok I want the folder user/ to authenicate the user, then if they authenticate make the folder an alias of /home/private

 

I also want guest/ to be an alias of /home/private

 

<VirtualHost *:80>
    DocumentRoot /home/www
    ServerAdmin dom.england

    <Directory "/user">
AuthType Basic
	AuthUserFile /home/.htpasswd
	AuthName "Members Area"
	require valid-user
    </Directory>
    Alias "/user" "/home/private"

    <Directory "/guest">
Allowoverride All
    </Directory>
    Alias "/guest" "/home/private"
</VirtualHost> 

 

 

At the moment it is bypassing the authentication and going straight to the alias.

Link to comment
https://forums.phpfreaks.com/topic/40745-alias-if-auth-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.