Linux各系统版本的Nginx默认配置
收集测试时间:2023-10-13
Debian 12
- Nginx version:
nginx/1.22.1
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/sites-enabled/default
- 默认站点目录:
/var/www/html
Debian 11.1
- Nginx version:
nginx/1.18.0
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/sites-enabled/default
- 默认站点目录:
/var/www/html
Debian 10.2
- Nginx version:
nginx/1.14.2
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/sites-enabled/default
- 默认站点目录:
/var/www/html
CentOS 7.6
- Nginx version:
nginx/1.20.1
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/nginx.conf
- 默认站点目录:
/usr/share/nginx/html
CentOS Steam 8
- Nginx version:
nginx/1.14.1
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/nginx.conf
- 默认站点目录:
/usr/share/nginx/html
Ubuntu 22.04 LTS 64bit
- Nginx version:
nginx/1.18.0
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/sites-enabled/default
- 默认站点目录:
/var/www/html
Ubuntu 20.04 LTS 64bit
- Nginx version:
nginx/1.18.0
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/sites-enabled/default
- 默认站点目录:
/var/www/html
Ubuntu 18.04.1 LTS 64bit
- Nginx version:
nginx/1.14.0
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/sites-enabled/default
- 默认站点目录:
/var/www/html
OpenCloudOS 8.6
- Nginx version:
nginx/1.14.1
- 配置目录:
/etc/nginx
- 默认站点配置:
/etc/nginx/nginx.conf
- 默认站点目录:
/usr/share/nginx/html