![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
文章平均质量分 85
nginx
lucas1018
路漫漫其修远兮,吾将上下而求索
展开
-
nginx端口复用配置及原理
前阵子在nginx中配置服务时,发现服务器只对外开放了80端口,若想服务器提供多项服务,就得考虑端口如何复用了。这里是通过域名也就是server_name字段来区分各项服务的。配置如下:http { ... server { listen 80; server_name blog.cn; root /home/www/blog; ... } server { ...原创 2020-06-17 23:20:30 · 6497 阅读 · 3 评论 -
nginx之http模块配置项
常见的nginx配置文件大概如下:http { include mime.types; access_log logs/access.log; gzip on; server { listen 80; server_name www.test.com; location / { proxy_pass http://127.0.0.1:9001; }原创 2020-11-02 00:16:41 · 1836 阅读 · 2 评论 -
nginx之server从配置到监听
一般的nginx某个虚拟主机配置文件可能如下:http { include mime.types; access_log logs/access.log; gzip on; server { listen 80; server_name www.test.com; location / { proxy_pass http://127.0.0.1:900...原创 2020-11-03 20:32:40 · 1245 阅读 · 0 评论