2022年7月6日星期三

aapanel/宝塔 反代优化


新建网址主页域名,开启ssl

反代conf那里粘贴如下

(https://整串改成你的)


#PROXY-START/

location /

{

    #缓存媒体文件

    location ~* .jpg|.png|.gif|.jpeg|.ttf|.webp|.woff|.woff2|.ico$

    {

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header REMOTE-HOST $remote_addr;

        proxy_pass https://www.要反代的域.com;

        proxy_cache cache_one;

        proxy_cache_valid 30d;

        proxy_ignore_headers Cache-Control;

        add_header X-Cache "$upstream_cache_status from $server_addr";

    }

    

    #缓存css、js、html

     location ~* .css|.js|.html$

    {

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header REMOTE-HOST $remote_addr;

        proxy_pass https://www.要反代的域.com;

        proxy_cache cache_one;

        proxy_cache_valid 3d;

        proxy_ignore_headers Cache-Control;

        add_header X-Cache "$upstream_cache_status from $server_addr";

    }

    

    proxy_pass https://www.要反代的域.com;

    proxy_set_header Host $host;

    proxy_set_header X-Real-IP $remote_addr;

    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    proxy_set_header REMOTE-HOST $remote_addr;

    

    #持久化连接相关配置

    #proxy_connect_timeout 30s;

    #proxy_read_timeout 86400s;

    #proxy_send_timeout 30s;

    #proxy_http_version 1.1;

    #proxy_set_header Upgrade $http_upgrade;

    #proxy_set_header Connection "upgrade";

    #add_header X-Cache $upstream_cache_status;

 

    #expires 12h;

}

    #PROXY-END/ 

转-汇丰香港开户详细教程(无须中介)

https://www.nodeseek.com/post-265532-1 汇丰香港,作为一家外资银行,同时也是香港三大具备发钞资格的银行之一,其全球业务网络广泛覆盖80余个国家和地区,稳居全球银行业前列。在香港开设银行账户时,汇丰香港是必开的香港银行账户之一。 一、开户前准备...