若僅需靜態 HTML 服務,**任何 Web 服務器均可勝任**:IIS、Apache、Nginx、Lighttpd、Caddy 等。
| 服務器 | 特點 | 配置文件 | 默認文檔節點 |
|---|---|---|---|
| IIS | Windows 內建,GUI 管理 | %SystemRoot%\System32\inetsrv\config\applicationHost.config | <defaultDocument><files><add value="index.html" /></files></defaultDocument> |
| Apache | 跨平台,模塊化 | /etc/httpd/conf/httpd.conf 或 apache2.conf | DirectoryIndex index.html |
| Nginx | 高併發,反向代理強 | /etc/nginx/nginx.conf | index index.html; |
apt install nginx 或 yum install httpd,刪除默認站點,僅保留 server { listen 80; root /var/www/html; index index.html; }。無需安裝額外「組件」,核心服務器本身即支持靜態文件服務。