Domyślne lokalizacje
Katalog główny: /usr/share/nginx/html
Konfiguracja:
- Debian/Ubuntu:
/etc/apache2/ - CentOS/Fedora:
/etc/httpd/
Logi:
- Debian/Ubuntu:
/var/log/apache2/ - CentOS/Fedora:
/var/log/httpd/
Dostęp
Otwórz przeglądarkę: http://<server-ip>/
Polecenia sterowania usługami
# Uruchom Apache sudo systemctl start apache2 # Debian/Ubuntu sudo systemctl start httpd # CentOS/Fedora # Zatrzymaj Apache sudo systemctl stop apache2 # Debian/Ubuntu sudo systemctl stop httpd # CentOS/Fedora # Uruchom ponownie Apache sudo systemctl restart apache2 # Debian/Ubuntu sudo systemctl restart httpd # CentOS/Fedora # Sprawdź status systemctl start apache2 # Debian/Ubuntu systemctl status httpd # CentOS/Fedora
