Directory Passwords and Indexes

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Agentmass
New to forums
New to forums
Posts: 4
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Jul 06, 2013 12:35 pm

Directory Passwords and Indexes

Post by Agentmass »

I have a webhost currently running at:

http://ams3.site.nfoservers.com/

and on that host there is a server and User folder. I want the user folder protected with a password, BUT I also want it to be view-able in the index, and not hidden. So I have the .htaccess and the .htpasswd files in my User folder. This is the .htaccess file in my User folder:

# Access file
order allow,deny
allow from all
require valid-user
Authname "DirectoryName"
Authtype Basic
Options +Indexes
AuthUserFile /usr/www/public/User/.htpasswd

And this is the .htpasswd file in my User folder:

User:HashedPasswordHere

When I try to connect to this folder using:

http://ams3.site.nfoservers.com/

The User folder does not show up at all, and when I try to alternatively connect to it using:

http://ams3.site.nfoservers.com/User

and type in the username and password, it tells me internal service error.

Can anyone tell me why my username and password do not work and why the directory isn't being shown in the index?

Thanks
Agentmass
New to forums
New to forums
Posts: 4
Joined: Sat Jul 06, 2013 12:35 pm

Re: Directory Passwords and Indexes

Post by Agentmass »

Also, if I wanted to hide a directory, but still not require a password, how would I do that?
Post Reply