[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Permitir acceso a Sitio Web en Apache 2 segun IP



Hola Lista.

Tengo un equipo LAMP (Debian Lenny) en el cual tengo instalado Apache 2 y PHP 5, entre otras cosas.

Buscando información por la web [0], [1] veo que existe la cláusula allow tal que:

allow 192.168.0.1/24

permitiría el acceso al sitio web solo a los equipos de la mencionada red.

Para eso edito:

/etc/apache2/sites-enabled/misitio

y agrego:


        <Directory /var/www/public_html/misitio>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                ###allow from all
                Allow from 200.200.200.200
                Allow from 127
                Deny from all
        </Directory>

Reinicio Apache con

/etc/init.d/apache restart

y aun asi sigo pudiendo acceder desde cualquier lugar.

Alguien sabe que estoy haciendo mal?

Muchas Gracias.

Salu2.



[0] http://www.informit.com/articles/article.aspx?p=29967&seqNum=4
[1] http://www.anyexample.com/linux_bsd/apache/restrict_apache_web_site_visitors_to_specific_ip_addresses.xml





      ____________________________________________________________________________________
¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8. 
http://downloads.yahoo.com/ieak8/?l=e1


Reply to: