Apache, restringir acceso
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Editar sites-enabled
- Ingresar por terminal a:
- Editar el archivo sites-enabled
- Dentro del archivo donde dice "Deny from all" eliminar el "all" y agregar todas las ip que se desean restringir, una debajo de otra. Ejemplo
cd /etc/apache2/sites-enabled
vim sites-enbled
... <Directory /var/www/> Deny from 1.2.3.1 Deny from 1.2.3.2 Deny from 1.2.3.3 Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all # Added by FCG : DirectoryIndex index.php index.html </Directory> ...