Location: header with .htaccess protection

Location: header with .htaccess protection

Post by Rajee » Fri, 23 Feb 1996 04:00:00

I am having problems using the Location: directive together
with .htaccess protection in a /cgi-bin directory. Nothing
relevant to this was found in the documentation and FAQ's in
the internet. I have examined this in detail on NCSA 1.5a,
but had a brief glimpse of the same difficulty on Netsite 1.1.

I have a script A that returns the header
Location: <another script B>
A and B are in the same directory.

If A and B are in an unprotected directory, things work fine.
But if A and B are in a directory with .htaccess in it, the
initial call to A is successful with authentication prompts and all,
but the call to B fails, even reauthorization from the browser
at the "Authorization failed" prompt does not work.

Similar results occur when another script is called by a form
that was generated by a script in the same directory.

Solutions attempted:
I tried all the obvious things like looking up the access.conf file,

Anyone out there have any +ve/-ve experience doing this?

Rajeev Jain
Information Services, NYSERNET, Inc.


1. .passwd protection inside <Location> ?


Is it possible to use .passwd access restrictions like it is
done in .htaccess files in <Location>...</Location> blocks ?

I tried it but it does not work. Is there any other possibility
to get access restriction that is not IP-based if one can
*NOT* use <Files> or <Directory> ?



         Linux - the choice of the GNU generation !

Christian Hammers * Oberer Heidweg 35 * D-52477 Alsdorf * Tel: 02404-25624
50 3C 52 26 3E 52 E7 20  D2 A1 F5 16 C4 C9 D4 D3  1024/925BCB55 1997/11/01

2. Redhat 8 Screen Saver Broken

3. error in php-script after protection with htaccess

4. hp dj400 dark - have answer, pls help me implement it

5. directory password protection - .htaccess

6. Linux 2.2.12 with ASUS P5A motherboard onchip sound

7. htaccess protection on a directory in cgi-bin

8. bug of Solaris 2.3

9. Trouble with bandwidth protection using htaccess

10. .htaccess directory protection

11. .htaccess protection of CGI-BIN & DOCS folder

12. <Location> in .htaccess with Apache1.1.1

13. htaccess...cgi-bin directory location question