随笔分类 - Linux知识 / nginx
摘要:nginx禁止限制某个IP地址或网段访问服务器 nginx配置访问ip需要修改nginx.conf文件,只需要在server中添加allow跟deny的ip即可,如下: upstream novel { server 127.0.0.1:8080; } server { listen 80; ser
阅读全文
摘要:server { listen 5001 default_server; server_name _; access_log /var/log/nginx/access_log; root /xxx/xxx/xxx; location /api/ { # ^/api/(.*)$ /$1 截取 api
阅读全文
摘要:Linux 集群概念 , wsgi , Nginx负载均衡实验 , 部署CRM(Django+uwsgi+nginx), 部署学城项目(vue+uwsgi+nginx) 一丶集群和Nginx反向代理 集群的概念: 集群的特性: Nginx的反向代理 # 反向代理 # 通过访问Nginx的web服务,
阅读全文