Servidor HTTP Apache

Um servidor web de código aberto e multiplataforma para servir HTTP/HTTPS com suporte modular.

Localizações padrão

Raiz da web: /usr/share/nginx/html

Configuração:

  • Debian/Ubuntu: /etc/apache2/
  • CentOS/Fedora: /etc/httpd/

Registos:

  • Debian/Ubuntu: /var/log/apache2/
  • CentOS/Fedora: /var/log/httpd/

Acesso

Abra o seu navegador: http://<server-ip>/

Comandos de controlo de serviço

# Iniciar o Apache
sudo systemctl start apache2    # Debian/Ubuntu
sudo systemctl start httpd      # CentOS/Fedora

# Parar o Apache
sudo systemctl stop apache2     # Debian/Ubuntu
sudo systemctl stop httpd       # CentOS/Fedora

# Reiniciar o Apache
sudo systemctl restart apache2  # Debian/Ubuntu
sudo systemctl restart httpd    # CentOS/Fedora

# Verificar o estado
systemctl start apache2         # Debian/Ubuntu
systemctl status httpd          # CentOS/Fedora

 

Detalhes da candidatura