随笔分类 - 应用服务 / web服务
摘要:nginx字符乱码问题 修复 # 关闭 charset charset off;
阅读全文
摘要:nginx代理304问题 配置代理不检查304 location ^~ /test/ { proxy_pass http://10.1.1.1/; proxy_set_header Host test.peter-zhou.com; proxy_set_header If-Modified-Sinc
阅读全文
摘要:文件下载防盗链 使用场景 客户端发起下载申请 > app服务器(文件上传会生成自己格式的文件名) app服务器返回下载地址 > 客户端 客户端下载 > web 服务器(nginx) nginx配置 ### 开启secure_link模块 编译开启 --with-http_secure_link_mo
阅读全文
摘要:nginx返回指定数据 返回json ### 配置指定路径返回相应json信息 location ~ ^/get_info { default_type application/json; return 200 '{"status":"success","result":"hello world!"
阅读全文
摘要:开启nginx状态页面 安装指定模块 nginx -V 查看是否安装 --with-http_stub_status_module 模块 #编译安装时添加如下参数 ./configure --with-http_stub_status_module 配置实例 server { listen 80;
阅读全文

浙公网安备 33010602011771号