nginx 反向代理配置文件修改为以下代码即可: 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_ssl_...
location ^~ / { proxy_pass https://www.binance.com/bapi/asset/v1/public/asset-service/product/currency; proxy_set_header Host www.binance.com; proxy_set_header X-Real-IP $remote_ad...
location / { root /var/www; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 la...
做这个的前提是,先自行配置好https环境。 接下来在首页的位置加上 <?php switch ($_SERVER["HTTP_HOST"]) { case "mmgg.net": header("location:https://www.mmgg.net"); break; } //h...