当前位置: 首页 > article >正文

nginx vue history模式 try_files

    server {
        listen 80;
        server_name localhost chat.test.com;
 
        #配置根目录
        location / {
            root    /temp/test;
            #index  index.html index.htm;
            try_files $uri $uri/ /index.html;
            add_header Content-Security-Policy upgrade-insecure-requests;
        }
    }  

https://blog.csdn.net/xutongbao/article/details/140991727?ops_request_misc=%257B%2522request%255Fid%2522%253A%25223eaec9ae571b3a02972f1f0ed6a2d4c3%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=3eaec9ae571b3a02972f1f0ed6a2d4c3&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-1-140991727-null-null.nonecase&utm_term=try_files%20&spm=1018.2226.3001.4450


http://www.kler.cn/a/598412.html

相关文章:

  • PyTorch核心基础知识点
  • 蓝桥杯web备赛----html篇
  • MATLAB代码丨信号处理:对Python中Librosa库部分函数的重现
  • 如何在望获实时Linux系统上配置静态IP
  • 【LeetCode】大厂面试算法真题回忆(37)--知识图谱新词挖掘
  • UV-Python包高效管理工具
  • 【CICD】Ansible知识库
  • 压力测试实战指南:JMeter 5.x深度解析与QPS/TPS性能优化
  • 交换机远程登录
  • fatal: Unable to create /.git/index.lock‘: File exists.
  • 【赵渝强老师】达梦数据库的数据库对象
  • 基于STM32单片机的智能手环/音乐播放/语音识别
  • CentOS 7.2 (1511) 详解功能安装与使用指南(附安装包)
  • Unity Animation的其中一种运用方式
  • 鬼泣:动作系统3
  • C++中,构造函数和析构函数
  • JavaEE进阶---Mybatis(预编译SQL即时SQL动态SQL标签池化技术说明)
  • Python常用库全解析:从数据处理到机器学习
  • Spring 6: 3容器-Ioc
  • Redis Sentinel 详解