DeveloperSide.NET Forums
September 18, 2019, 01:27:02 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ErrorDocument not working in passworded folder - any ideas?  (Read 7960 times)
0 Members and 1 Guest are viewing this topic.
whiffin
Member
*
Posts: 2


View Profile
« on: January 21, 2005, 10:07:05 AM »

If you go to www.bnl-cbrn.co.uk/private/nothere.html - enter an incorrect
username/password 3 times and you get the default 401 error page.

I need to customise this.

In my public_html folder I have a .htaccess file with the lines:

ErrorDocument 401 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 402 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 403 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 404 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 300 http://www.bnl-cbrn.co.uk/error.html

This I think works fine.

In my public_html/private folder which is password protected I have the
.htaccess file:

ErrorDocument 401 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 402 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 403 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 404 http://www.bnl-cbrn.co.uk/error.html
ErrorDocument 300 http://www.bnl-cbrn.co.uk/error.html
AuthUserFile /usr/users/a8114492/public_html/private/.htpasswd
AuthName "Bruhn NewTech Members Area"
AuthType Basic
Require valid-user

So I thought my error page should be called whenever someone tried to look
at a page in public_html/private and entered the incorrect password

It doesn't

Please can someone help
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: January 21, 2005, 11:13:55 PM »

Look at the 'Options' directive for that private dir vs. the other dir, under httpd.conf.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
whiffin
Member
*
Posts: 2


View Profile
« Reply #2 on: January 24, 2005, 09:24:38 AM »

I have no access to that :(

Apparently I need to set it all up through the level above - but don't know how.

ANy ideas?

Cheers
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!