Thread (sichere)Speicherung von Bildern und dann anzeigen (10 answers)
Opened by renee at 2006-12-06 13:10

bloonix
 2006-12-07 12:03
#9302 #9302
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Du könntest innerhalb einer Location Authentifizierung verlangen.

Was dazu nötig ist, findest du hier...

http://httpd.apache.org/docs/2.0/mod/core.html#authtype
http://httpd.apache.org/docs/2.2/howto/auth.html

Beispiel:

Code: (dl )
1
2
3
4
5
6
7
Alias /files /var/www/www.example.test/home/files
<Location /files>
       AuthType Basic
       AuthName "Restricted Files"
       AuthUserFile /etc/apache2/pw_file_for_alias_files
       Require user renee
</Location>


htpasswd2 -c /etc/apache2/pw_file_for_alias_files renee
New password: renee
Re-type new password: renee


Zum Testen example.test/files aufrufen. Es wird nach einer Authentifizierung
verlangt.\n\n

<!--EDIT|opi|1165485856-->
Last edited: 2012-11-08 12:29:03 +0100 (CET)
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread (sichere)Speicherung von Bildern und dann anzeigen