随笔分类 -  Nginx

摘要:如果一个网站已经实施了防止代理的措施,可能会使用一些技术手段来识别和封禁代理请求。在这种情况下,您可以考虑使用一些技术手段来规避这些防护措施。 以下是一些可能有用的技术手段: 伪装 User-Agent有些网站可能会根据 User-Agent 字段来识别代理请求。因此,您可以尝试修改 Nginx 的 阅读全文
posted @ 2023-03-08 15:16 三瑞 阅读(1738) 评论(0) 推荐(0) 编辑
摘要:nginx 子路径 网站图片或js/css 路径缺失 替换 location /test { rewrite ^/test/(.*)$ /$1 break; proxy_pass http://localhost:8080; sub_filter_types *; sub_filter '/Cont 阅读全文
posted @ 2023-01-31 15:00 三瑞 阅读(362) 评论(0) 推荐(0) 编辑
摘要:最近开发时遇到了上传失败的情况,提示: 413 Request Entity Too Large(请求实体太大) 因为上传通过代理服务器Nginx,因此可以 修改代理服务器Nginx 的相关配置来解决。 作为反向代理服务器 , nginx最先收到client请求 ,一定会有一些限制 .所以要修改Ng 阅读全文
posted @ 2022-10-19 23:14 三瑞 阅读(3345) 评论(0) 推荐(0) 编辑
摘要:前后端分离,前端手机端与PC端分离 server { listen 8080; server_name localhost 127.0.0.1; #添加头部信息 proxy_set_header Cookie $http_cookie; proxy_set_header X-Forwarded-Ho 阅读全文
posted @ 2022-06-19 21:26 三瑞 阅读(164) 评论(0) 推荐(0) 编辑
摘要:注意:server_name 多个域名时用空格隔开,否则可能报“could not build server_names_hash, you should increase server_names_hash_bucket_size”(两个域名使用443端口时) server { listen 80 阅读全文
posted @ 2022-04-04 09:52 三瑞 阅读(207) 评论(0) 推荐(0) 编辑
摘要:windows: 1、建一个Bat文件如下。 2、设置定时执行Bat方法:https://www.cnblogs.com/bmwchampion/archive/2010/08/21/autotimingexcutejob.html @echo off set basedir=%~dp0 set l 阅读全文
posted @ 2022-04-03 10:51 三瑞 阅读(31) 评论(0) 推荐(0) 编辑
摘要:# location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ # { # #解决反向代理无法访问图片 # proxy_pass http://localhost:4534; # proxy_set_header Host $host:$server_port; # pro 阅读全文
posted @ 2021-02-14 17:49 三瑞 阅读(40) 评论(0) 推荐(0) 编辑
摘要:复制:https://blog.csdn.net/qq_36949713/article/details/83108149 安装Nginx 下载windows版nginx (http://nginx.org/download/nginx-1.10.0.zip),之后解压到需要放置的位置(D:\xam 阅读全文
posted @ 2021-01-12 11:56 三瑞 阅读(600) 评论(0) 推荐(0) 编辑
摘要:nginx server { listen 9191; root E:\HelloProject\dist; index index.html index.htm; server_name localhost; #charset koi8-r; #access_log logs/host.acces 阅读全文
posted @ 2021-01-12 09:52 三瑞 阅读(396) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-12-25 17:10 三瑞 阅读(0) 评论(0) 推荐(0) 编辑
摘要:在http{ ... } 中间加入 # HTTPS server # server { listen 4343 ssl; server_name 域名; ssl_certificate D:/SoftWare/nginx-1.16.1/cert/Nginx/1.crt; ssl_certificat 阅读全文
posted @ 2020-11-27 21:15 三瑞 阅读(236) 评论(0) 推荐(0) 编辑
摘要:解决方案 原因:这是因为中间的这台服务器nginx 没有携带实际服务器http请求数据包的头部文件 解决方案:nginx配置文件,全局部分,http括号内添加: http{ server{ location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { proxy_pass 阅读全文
posted @ 2020-11-26 23:42 三瑞 阅读(1290) 评论(0) 推荐(0) 编辑
摘要:一个网站是php做的(apache 为 web服务器)、一个是asp.net 做的(IIS 为 web服务器) 上配置 #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log not 阅读全文
posted @ 2020-11-26 17:11 三瑞 阅读(396) 评论(0) 推荐(0) 编辑
摘要:复制至:https://blog.csdn.net/qq_36949713/article/details/83108149 安装Nginx 下载windows版nginx (http://nginx.org/download/nginx-1.10.0.zip),之后解压到需要放置的位置(D:\xa 阅读全文
posted @ 2020-11-26 11:13 三瑞 阅读(148) 评论(0) 推荐(0) 编辑
摘要:官方网站下载地址: https://nginx.org/en/download.html http://www.wuwenhui.cn/4570.html Nginx部署angular项目 https://blog.csdn.net/chending_cd/article/details/10073 阅读全文
posted @ 2020-07-14 15:16 三瑞 阅读(225) 评论(0) 推荐(0) 编辑
摘要:nginx js、css、图片 及 一些静态文件中出现 http://upstreamname:port 导致部分网页样式显示不正常 http://upstreamname:port/....../.......js 解决方法: 将@Url.StaticFile("“)修改为 从根目录中替换了 阅读全文
posted @ 2018-05-05 13:18 三瑞 阅读(188) 评论(0) 推荐(0) 编辑
摘要:背景: Mono (Mono JIT compiler version 5.4.0.201 ) jexus-5.8.2-x64(《CentOS7 安装 jexus-5.8.2-x64》) VirtualBox5.1.22(3个CentOS7系统) (192.168.5.147、192.168.5.1 阅读全文
posted @ 2017-11-04 08:57 三瑞 阅读(31795) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示