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教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
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
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