跳至主要内容
五折优惠 全部方案,限时优惠。起价 $2.48/mo
Apache HTTP Server

Apache HTTP Server

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

快速概览

4.1k

GitHub star 数

221

页面浏览量

319

活跃安装数

许可证 Apache-2.0 版本 Latest OS Ubuntu Server 24.04 LTS, Ubuntu Server 22.04 LTS, Debian 12, CentOS Stream 9, Fedora 40 Min RAM 1 GB IP IPV4,IPV6

活跃安装数为示例数据(预览版);正式版本将接入真实数据。

默认位置

网站根目录 /usr/share/nginx/html

配置:

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

日志:

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

访问

打开你的浏览器: 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 服务器

相关应用。

立即部署 Apache HTTP Server。 起价 $2.48/月。