随笔分类 -  nginx

本机调试跨域,nginx转发解决
摘要:谷歌浏览器ajax请求报错 接口请求正常 phpstudy中配置个本地域名 然后配置hosts 新增 127.0.0.1 wertyuiopp.com 找到 设置 -> vhosts.conf -> 点配置的域名 server { listen 80; server_name wertyuiopp. 阅读全文

posted @ 2023-04-21 17:56 何苦-> 阅读(243) 评论(0) 推荐(0) 编辑

楼层数据 nginx 处理 替代redis
摘要:说明 用户访问楼层数据 nginx请求自身缓存模块 nginx根据配置(默认5分钟,即缓存5分钟自动失效,失效后请求页面服务重新缓存),读取缓存,如果缓存中没有数据,则放过请求。 Nginx 请求放过,交给具体服务来处理 获取最新的楼层信息,返回信息 前端得到数据,进行楼层渲染 架构思路 楼层数据, 阅读全文

posted @ 2023-02-28 10:40 何苦-> 阅读(49) 评论(0) 推荐(0) 编辑

php (nginx,apache) 常用配置
摘要:前台html服务器,测试的时候不加缓存 server { listen 82; root D:/phpStudy/WWW/xxx; index index.html index.htm; location ~ .*\.(css|js|swf|htm|html)$ { add_header Cache 阅读全文

posted @ 2022-08-11 13:47 何苦-> 阅读(88) 评论(0) 推荐(0) 编辑

宝塔配置301重定向
摘要:站点配置 微擎框架(老) 之前确定的URL(执行301前的路径) http:/oldxxx.com/addons/shop/?menu#/diy?page_id=3&i=3 配置的目标URL($request_uri为宝塔自动给拼接的,前面的&或是?根据情况自行填加) http://xxx.com/ 阅读全文

posted @ 2022-06-16 11:49 何苦-> 阅读(267) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示