为了账号安全,请及时绑定邮箱和手机立即绑定

nginx 如何运行 html

nginx 如何运行 html

BIG阳 2019-03-02 14:02:50
nginx 如何运行 html
查看完整描述

2 回答

?
HUH函数

TA贡献1836条经验 获得超4个赞


1、在启动nginx之前,打开nginx.conf配置一下你的工程目录,比如:

1

2

3

4

5

6

7

8

9

server {

        listen       8000;

        server_name  saveimage  alias  another.alias;

        location / {

            autoindex on;

            root   "D:\site";

            index  index.html index.htm;

        }

    }

然后启动nginx就可以运行html了;

2、Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 服务器。 


 


查看完整回答
反对 回复 2019-03-08
  • 2 回答
  • 0 关注
  • 3488 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信