使用curl命令,模拟一个客户端的访问。有时候我们需要为hostname正确的赋值,

可以使用以下方便的技巧,而不用修改/etct/resovle.conf文件的内容。

curl -k -v https://www.classic-tong15.com/path17 --resolve www.classic-tong15.com:443:10.7.19.115

 

nginx重定向或proxy时,url变量的一般写法,见红字

location / {
return 301 https://$host$uri$is_args$args;
}

 

相关文章:

  • 2022-02-11
  • 2021-12-29
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案