码迷,mamicode.com
首页 > Windows程序 > 详细

Nginx 在Windows下搭建静态Web服务

时间:2018-04-19 17:00:29      阅读:372      评论:0      收藏:0      [点我收藏+]

标签:解压   and   man   text   long   netflix   分代   index   AC   

简介

nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 23.76% busiest sites in March 2018. Here are some of the success stories: Dropbox, Netflix, Wordpress.com, FastMail.FM.

?

下载

参考 http://nginx.org/en/download.html

技术分享图片

?

安装

直接解压到程序目录。

?

命令

????启动

????$ ngnix

????停止

????$ ngnix –s stop

????$ ngnix –s quit

?

配置

参考部分代码:

server {

listen 8000;

server_name localhost;

?

location / {

root C:/web/aaa;

index index.html index.htm;

}

}

?

server {

listen 8001;

server_name localhost;

?

location / {

root C:/web/bbb;

index index.html index.htm;

}

}

?

?

????

Nginx 在Windows下搭建静态Web服务

标签:解压   and   man   text   long   netflix   分代   index   AC   

原文地址:https://www.cnblogs.com/xiaobo/p/8883902.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!