Ubicaciones predeterminadas
Raíz web: /usr/share/nginx/html
Configuración:
- Debian/Ubuntu:
/etc/apache2/ - CentOS/Fedora:
/etc/httpd/
Registros:
- Debian/Ubuntu:
/var/log/apache2/ - CentOS/Fedora:
/var/log/httpd/
Acceso
Abre tu navegador: http://<server-ip>/
Comandos de control de servicio
# Iniciar Apache
sudo systemctl start apache2 # Debian/Ubuntu
sudo systemctl start httpd # CentOS/Fedora
# Detener Apache
sudo systemctl stop apache2 # Debian/Ubuntu
sudo systemctl stop httpd # CentOS/Fedora
# Reiniciar Apache
sudo systemctl restart apache2 # Debian/Ubuntu
sudo systemctl restart httpd # CentOS/Fedora
# Comprobar estado
systemctl start apache2 # Debian/Ubuntu
systemctl status httpd # CentOS/Fedora
