Hola a todo la lista...
Actualmente estoy con Debian 3.1 r2, y problema concretamente lo tengo con
apache2.
Llevo unas horas con el asunto y no soy capaz de darle solución. Tengo un directorio en mi servidor que quiero autentificar, he creado un .htacces concretamente este: AuthName "Acceso Restringido" AuthUserFile /home/???/passwd/.htpasswd AuthType Basic require valid-user Y luego en el fichero default del directorio /etc/apache2/sites-avaibles, he modificado el AllowOverride con AuthConfig, tambien os envio el fichero. NameVirtualHost * ServerAdmin webmaster@localhost DocumentRoot /var/www/ Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place # RedirectMatch ^/$ /apache2-default/ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 EL PROBLEMA ES EL SIGUIENTE, cuando pongo todo esto y listo los directorios que hay en mi server www.????.es/ficheros, me salen los directorios que no tienen .htaccess pero me oculta el directorio donde esta el .htaccess. Debe haber algo por ahí que indique a apache2 que cuanto este el .htaccess oculte el directorio. En otros sistemas lo he tenido y sin ningun problema me lo enseñaba y cuando pulsaba me pedia usuario y contraseña, pero en esta ocasion ni lo veo. Alguien podrian orientarme donde esta el problema Gracias. By packet. Alberto. |