Gestión de servidor Apache2
Gestionar servicio de Apache2 desde donde se levantará el portal cautivo del AP falso.
Instalar Apache2 en el sistema
sudo pacman -S apache
Habilitar servicio Apache
sudo systemctl enable httpd
Iniciar servicio Apache
sudo systemctl start httpd
Otras gestiones desde systemctl
sudo systemctl status httpd # Ver estado del servicio Apache
sudo systemctl restart httpd # Reiniciar servicio Apache
sudo systemctl stop httpd # Detener servicio Apache
sudo systemctl disable httpd # Deshabilitar servicio Apache
El directorio raíz del servicio Apache se encuentra en
/srv/http
Si por comodidad se necesita cambiar el directorio raíz a /var/www/html, modificar parámetros desde fichero /etc/httpd/conf/httpd.conf
...SNIP...
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
...SNIP...
</Directory>
...SNIP...
<IfModule alias_module>
...SNIP...
ScriptAlias /cgi-bin/ "var/www/html/cgi-bin/"
</IfModule>
...SNIP...
<Directory "var/www/html/cgi-bin">
...SNIP...
</Directory>
...SNIP...