B
B
Bright2011-09-26 21:28:33
Apache HTTP Server
Bright, 2011-09-26 21:28:33

[Apache] Are files from a password-protected directory available via direct links?

Hello.
Noob question, but Google didn't come up with a solution.
The files-list directory contains the following .htaccess:

Options +Indexes<br/>
IndexIgnore passw-data<br/>
<br/>
AuthName &quot;Registered users only&quot;<br/>
AuthType Basic<br/>
AuthUserFile %site_dir%/files-list/passw-data/.htpasswd<br/>
Require valid-user

Passw-data contains .htpasswd itself and another .htaccess:
Options -Indexes<br/>
Deny from all

Denver Apache digests all this well and asks for authorization when trying to access both directories and files inside them. But after transferring to the server, everything turns out differently: when accessing the directory, authorization is requested, but if you type the full path to the file from this directory, it is given to unauthorized users without any requests.
Tell me, please, how can I fix this?
PS: well, at the same time, kick the solution as a whole (you just need to organize a password-protected section with files)
PPS: on the Apache 1.3 server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Peretyatko, 2011-09-26
@Bright

Apache is 100% nginx )))) and he didn't care about any restrictions in .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question