Máy chủ HTTP Apache

Một máy chủ web mã nguồn mở, đa nền tảng để phục vụ giao thức HTTP/HTTPS với hỗ trợ mô-đun.

Vị trí mặc định

Thư mục gốc của trang web: /usr/share/nginx/html

Cấu hình:

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

Nhật ký:

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

Truy cập

Mở trình duyệt của bạn: http://<server-ip>/

Lệnh điều khiển dịch vụ

# Khởi động Apache sudo systemctl start apache2 # Debian/Ubuntu sudo systemctl start httpd # CentOS/Fedora # Dừng Apache sudo systemctl stop apache2 # Debian/Ubuntu sudo systemctl stop httpd # CentOS/Fedora # Khởi động lại Apache sudo systemctl restart apache2 # Debian/Ubuntu sudo systemctl restart httpd # CentOS/Fedora # Kiểm tra trạng thái systemctl start apache2 # Debian/Ubuntu systemctl status httpd # CentOS/Fedora

 

Thông tin ứng dụng