homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess not working
chrisguk




msg:4550727
 9:20 pm on Mar 3, 2013 (gmt 0)

Hi,

Im back again with yet another issue.

I have created a simple .htaccess file in the root as detailed below:

/var/www/.htaccess

The contents are as follows:



AuthUserFile /var/access/.htpasswd
AuthName "Please Log In"
AuthType Basic

<files ".htaccess">
order allow,deny
deny from all
</files>



My .htpasswd is located in /var/access/.htpassword and that has the automated lines added when you issue the htpasswd -c command in linux.

For some unknown reason to me the file is not block access to that directory and I have no idea why?

All of the sub directories are still visible too.

Any ideas?

 

chrisguk




msg:4550729
 9:30 pm on Mar 3, 2013 (gmt 0)

Cancel that I resolved it.

The apache I misspelled the .htaccess ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved