Nginx变异安装加上参数 --with-http_sub_module

配置文件:

location ~* ^/portalproxy/([0-9]*)/portal(.*)$ {
    #sub_filter '302 Found' 'success';
    #sub_filter_once off;
    set $bodyContent '<html><head><title>success</title></head><body><script>location.href="http://$host/portalproxy/portal?url_timetemp
=$1$2";</script></body></html>';
    #rewrite '^/portalproxy/([0-9]*)/portal$' http://$host/portalproxy/portal?url_timetemp=$1 break;
    add_header Content-Type "text/html";
    return 200 $bodyContent;
        }

 

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2021-05-09
  • 2021-04-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2021-08-17
  • 2021-06-11
  • 2021-11-16
  • 2021-09-27
  • 2021-04-17
  • 2021-06-28
相关资源
相似解决方案