Command Palette

Search for a command to run...

nginx反向代理重写url,绕过uBlock Origin拦截规则

今儿发现matomo被uBlock Origin规则拦截了,受高人指点可以通过反向代理绕过规则,在此分享方法 在nginx配置文件添加 location /ma.js { rewrite ^/ma\.js$ /matomo.js last; } location /mapi { rewrite ^/mapi$ /matomo.php last; } 第一行是请求 https://ma.krjojo...

Nginx 加上路径的反向代理

情况: 用户请求 example.com 为站点的静态页面 用户请求 example.com/api 为后端接口,后端需要收到包含 /api 路径请求 后端暴露在本地8360端口中 nginx配置文件添加如下 location /api/ { proxy_pass http://127.0.0.1:8360; }