nginx刷新404
配置伪静态,解决nginx刷新404 location / { index index.php index.html index.htm default.php default.htm default.html; if (!-e $request_filename) { rewrite ^(.*…
配置伪静态,解决nginx刷新404 location / { index index.php index.html index.htm default.php default.htm default.html; if (!-e $request_filename) { rewrite ^(.*…
nginx主配置文件最外层增加如下配置 #mysql代理 stream { log_format proxy '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' …
应该是SSL证书握手的时候,不匹配,造成握手失败 反向代理配置文件 location /{ #添加 proxy_ssl_server_name on; proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2; }
在反向代理中增加如下配置 关键配置 start proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 关键配置 end
location ^~ / { proxy_pass http://127.0.0.1:8081/; proxy_set_header &n…
1、正则表达式匹配 ~ 区分大小写匹配 ~* 不区分大小写匹配 !~和!~*分别为区分大小写不匹配及不区分大小写不匹配 &nbs…