Включить загрузку PDF-файлов с URL-адреса с помощью htpasswd (APACHE и WP)Apache

Anonymous
Включить загрузку PDF-файлов с URL-адреса с помощью htpasswd (APACHE и WP)

Сообщение Anonymous »


I have a website with an UPLOAD folder full of PDF files.

Directory list is disabled but Im not able to enable password to download file

Assuming that the directory abs path is /home/user/server/wp-content/ninja-upload/11/

Ive created in that path 2 files

.htpasswd

admin:qwe3f43?r4 .htaccess

Order Allow,Deny Allow from all Deny from all AuthName "Admins Only" AuthUserFile /home/user/server/wp-content/ninja-upload/11/.htpasswd AuthType basic Require valid-user Didnt works. Ive made a lot of try but any success: when i use direct link

http://website/wp-content/ninja-upload/11/a.pdf I can read it without asking any pass


Источник: https://stackoverflow.com/questions/780 ... che-and-wp

Вернуться в «Apache»