![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
花仙子子
Renew your mind, and you can get a new life.
展开
-
nginx分发模板
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections ...原创 2018-08-13 13:56:38 · 494 阅读 · 0 评论 -
Nginx缓存模板
user nobody;worker_processes 1;error_log logs/error.log;error_log logs/error.log notice;error_log logs/error.log info;pid logs/nginx.pid;events { worker_connecti...原创 2018-07-06 17:11:59 · 243 阅读 · 0 评论 -
Linux安装nginx、负载均衡、添加keepalived高可用
我是按照离线安装步骤写的 yum-iso链接:链接:https://pan.baidu.com/s/1L1iqRK_uV1EgD2uHLZZ9wA 密码:b9bk nginx软件包链接:https://pan.baidu.com/s/1MM4FVM9g2lbWE1uXTrhCMw 密码:0wei#!/bin/bash#上传yum-iso#上传nginxcd /root/yum-iso...原创 2018-06-20 15:23:40 · 305 阅读 · 0 评论 -
Nginx当跳转a.com时,自动跳转到b.com
server{listen 80; server_name a.com; location / { proxy_next_upstream http_502 http_504 error timeout invalid_header; proxy_set_header Host $host; proxy_set_header...原创 2018-08-14 09:30:21 · 4070 阅读 · 0 评论 -
Nginx跨域问题
nginx相关配置:server{ listen 8080; add_header backendIP $upstream_addr; add_header backendCode $upstream_status; location / { if ($request_method = 'OP...原创 2018-08-31 18:59:15 · 371 阅读 · 0 评论