![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
dkgao
java开发 个人qq:1129299874
展开
-
nginx 指定本地路径
server { listen 8089; server_name microweb.zrytech.com; location /img/ { alias /home/zry/img/; index index.html index.htm; } }...原创 2021-05-06 14:35:00 · 1098 阅读 · 0 评论 -
Windows通过nginx安装ssl证书(阿里云买的域名)
1. 阿里云买的域名,申请个免费的证书然后 下载证书 选 nginx,2, 安装个openssl 下载地址http://slproweb.com/products/Win32OpenSSL.html(我下载的是 Win64OpenSSL_Light-1_1_1g.exe )3.直接给nginx 搞个server / 443端口, 然后 注意 把阿里云下载的证书文件放到服务器,然后把路径给到nginx里面就行了server { listen 443 ......原创 2020-09-09 15:44:47 · 1873 阅读 · 1 评论 -
X-Frame-Options问题和nginx第三方静态资源代理
location /tupian { proxy_pass http://www.szlhq.gov.cn/tupian/; } location /shiydmh { proxy_hide_header X-Frame-Options; proxy_pass http://www.szlhq.gov.cn/shiydmh/; }这种第三方没有任何规律的静态资源,...原创 2020-06-07 15:45:58 · 619 阅读 · 0 评论 -
nginx配置代理访问第三方静态资源不显示问题,以及iframe加载无cookie显示跨站点请求攻击问题
location /appAdmin/ { proxy_set_header Host aaa.cn; proxy_set_header Cookie $http_Cookie; proxy_set_header Referer http://aaa.cn/appAdmin/applySearchPhone.jsp; proxy_pass http://ljctt.meeb...原创 2020-06-02 16:03:17 · 1511 阅读 · 0 评论