nginx pseudo-static problem
高洛峰
高洛峰 2017-05-16 17:10:08
0
1
456

Accessing an image actually returns an html page

rewrite /123.html /123.jpg;

It may be a bit strange, but it can only be used in the project. Is this reliable?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
为情所困

It’s best to have a prefixed path or something like rewrite /img/{var}.jpg /img/{var}.html, otherwise there will be problems when you want to use the images in the server

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template