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报错:413 Request Entity Too Large
发现上传大文件时报错:413 Request Entity Too Large。以为单纯的是php配置问题,于是将php.ini配置中的post\_max\_size和upload\_max\_filesize进行了调整,都设置为500Mb,但上传文件不足500Mb大小时,仍然报“413 Request Entity Too Large”这个错误。 后面发现还需要在nginx的配置文件中,添加cl...
Use X-Content-Type-Options Header修复
今天在看到了 Use X-Content-Type-Options Header 的警告 具体内容为:<https://webhint.io/docs/user-guide/hints/hint-x-content-type-options/?source=devtools> 大概意思就是: 响应头用来指定浏览器对未指定或错误指定Content-Type资源真正类型的猜测行为,nosniff表示不...