Default Locations
Web root: /usr/share/nginx/html
Configuration:
- Debian/Ubuntu:
/etc/apache2/
- CentOS/Fedora:
/etc/httpd/
Logs:
- Debian/Ubuntu:
/var/log/apache2/
- CentOS/Fedora:
/var/log/httpd/
Access
Open your browser: http://<server-ip>/
Service Control Commands
# Start Apache sudo systemctl start apache2 # Debian/Ubuntu sudo systemctl start httpd # CentOS/Fedora # Stop Apache sudo systemctl stop apache2 # Debian/Ubuntu sudo systemctl stop httpd # CentOS/Fedora # Restart Apache sudo systemctl restart apache2 # Debian/Ubuntu sudo systemctl restart httpd # CentOS/Fedora # Check status systemctl start apache2 # Debian/Ubuntu systemctl status httpd # CentOS/Fedora