大佬教程收集整理的这篇文章主要介绍了如何仅使用nginx将特定文件添加到特定文件中,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有图片,我想添加他们的标题为最大,我有个人资料的图片,可以更改和发布图片,我想添加标题只为后期图片,但不是个人资料图片,我不知道如何管理这个.谢谢,这是我的配置,@H_772_2@
this is the path of posts,/post/name-of-the-picture.jpg
this is the path of users,/user/name-of-the-picture.jpg
我只想添加标题来发布路径@H_772_2@
LOCATIOn ~* \.(css|js|png|gif)${
expires max;
add_header Pragma PUBLIC;
add_header Cache-Control "public";
}
选项1:@H_772_2@
LOCATIOn /post/ {
post config stuff;
.
.
.
}
LOCATIOn ~* ^/post/.*\.(css|js|png|gif)${
post/files.(css|js|png|gif) config stuff;
expires max;
add_header Pragma PUBLIC;
add_header Cache-Control "public";
}
LOCATIOn /user/ {
user folder config stuff;
.
.
.
}
LOCATIOn ~* ^/user/.*\.(css|js|png|gif)${
user/files.(css|js|png|gif) config stuff;
.
.
.
}
选项二:@H_772_2@
LOCATIOn /post/{
...
LOCATIOn ~* \.(css|js|png|gif)${
expires max;
add_header Pragma PUBLIC;
add_header Cache-Control "public";
}
}
LOCATIOn /user/{
...
LOCATIOn ~* \.(css|js|png|gif)${
...
}
}
以上是大佬教程为你收集整理的如何仅使用nginx将特定文件添加到特定文件中全部内容,希望文章能够帮你解决如何仅使用nginx将特定文件添加到特定文件中所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。