50% off 所有套餐限时优惠,起价 $2.48/mo
Apache HTTP Server

Apache HTTP Server

Apache HTTP Server 是最早的 Web 服务器,自 1995 年起持续迭代至今。模块化架构,支持 .htaccess 覆盖配置、mod_rewrite,拥有三十年的兼容性积累。目前仍为全球约四分之一的公共网站提供服务,并作为 cPanel、Plesk 及多数 Linux 发行版的默认 Web 服务器。

Version

Latest

Operating System

Ubuntu Server 24.04 LTS、Ubuntu Server 22.04 LTS、Debian 12、CentOS Stream 9、Fedora 40

Min. RAM

1 GB

IP Types

IPV4,IPV6

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

打开浏览器: http://<server-ip>/

服务控制命令

# 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

 

更多 Web 服务器

Related apps.

立即部署 Apache HTTP Server。 From $2.48/mo.