- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
修改 nginx.conf 文件实现。
1 | server { |
2 | listen 80; |
3 | server_name localhost; |
4 |
5 | …… |
6 | } |
改成
01 | server { |
02 | listen 81; |
03 | server_name localhost; |
04 |
05 | location / { |
06 | root html; |
07 | index index.html index.htm; |
08 | } |
09 | …… |
10 | } |
当然改成 8080,8081 什么的都可以,不一定要 81,但是确保 iptable 要放开对该端口的访问。
注意到 location 的配置:
root html; #根目录,相对于安装目录
index index.html index.htm; #默认主页
默认,你把文件放在安装目录下的 html 文件夹,
售前咨询
售后咨询
备案咨询
二维码
TOP