在Nginx中为URL添加扩展名

时间:2019-03-19 00:43:38

标签: nginx

每个人..我生成了一个URL http://example.com/filepath/hcimpbkyfm,我想添加html扩展名并在内部进行代理传递。

URLRequest:http://example.com/filepath/hcimpbkyfm 目的地:: http://internal.com/filepath/hcimpbkyfm.html

位置阻止:

  

位置〜^ / filepath /(。*){             proxy_pass https://internal.com/filepath/ $ 1.html;             proxy_set_header主机$ host;             proxy_set_header X-Real-IP $ remote_addr; }

这是我得到的错误:

10.10.81.223--[18 / Mar / 2019:20:30:42 -0400]“ GET /filepath/hcimpb​​kyfm.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html。 html.html.html.html.html.html.html.html.html.htm

0 个答案:

没有答案