Unidad 9: Apache

Administracion de Servidores Linux (Abacom)

Diego Saavedra

2026-02-01

Agenda

  • Instalacion y validacion (servicio/puerto/curl)
  • Logs (access/error)
  • Modulos y sitios (a2enmod/a2ensite)
  • VirtualHosts (ServerName, DocumentRoot)
  • Hardening basico (ServerTokens, headers)

Demo: Instalar y validar

$ sudo apt update


$ sudo apt install -y apache2


$ systemctl status apache2 --no-pager
 apache2.service - The Apache HTTP Server
     Active: active (running)


$ curl -I http://localhost
HTTP/1.1 200 OK
Server: Apache/2.4.58 (Ubuntu)

Demo: VirtualHost (Host header)

$ curl -H 'Host: site1.local' http://127.0.0.1
<h1>Site1 OK</h1>

Recursos