Administracion de Servidores Linux (Abacom)
2026-02-01
$ 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)
$ curl -H 'Host: site1.local' http://127.0.0.1 <h1>Site1 OK</h1>