Apache2: habilitar un modulo

Apache2 Servidor Web

Para habilitar un módulo en el servidor web apache2, por ejemplo el módulo rewrite para permitir re-escritura de las url, y conseguir url’samigables“, basta con ejecutar el comando a2enmod seguido del nombre del módulo:

jose@server:/var/www/webs/$ sudo a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
jose@server:/var/www/webs/$ 

Servidor Web Apache

Servidor Web Apache

Para deshabilitar, tenemos el comando a2dismod, que funciona igual que el anterior:

jose@server:/var/www/webs/$ sudo a2dismod rewrite
Module rewrite disabled.
To activate the new configuration, you need to run:
service apache2 restart
jose@server:/var/www/webs/$

Y para comprobar que módulos tenemos cargados en apache2 este otro:

jose@server:/var/www/webs/$ sudo apache2ctl -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_dbd_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dbd_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php5_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)
wsgi_module (shared)

Saludos y hasta la próxima

Un comentario

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.