Nginx 在Windows下搭建静态Web服务
简介
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;
}
}
最新文章
- winfrom组件圆角
- MS SQLSERVER中如何快速获取表的记录总数
- 多进程程序设计,王明学learn
- python 字符编码练习
- SGU 190.Dominoes(二分图匹配)
- SSM框架中常用的注解
- Luogu P1231 教辅的组成
- CTF---安全杂项入门第三题 这是捕获的黑客攻击数据包,Administrator用户的密码在此次攻击中泄露了,你能找到吗?
- 【BZOJ2242】【SDOI2011】计算器
- 数据库艰难求生之路(基础:增删改查)part2
- 使用 OpenSSL 创建私有 CA:2 中间证书
- Ehcache
- 如何用nodejs创建一个webservice
- python迭代器以及生成器
- 【阿里巴巴】CBU技术部招聘
- 《Bilateral Multi-Perspective Matching for Natural Language Sentences》(句子匹配)
- session和cookie的异同
- supervisor 添加新配置不生效的问题
- Django - 模型层 - 下
- Devexpress GridControl无限高度惹得祸