zoukankan      html  css  js  c++  java
  • nginx vue三级目录配置

    server {
            listen 8001;
            location / {
                # vue h5 history mode 时配置
                try_files $uri $uri/ /index.html;
        
                root D:/phpstudy_pro/WWW/Vue/XMTFDMSH/dmsWechat/;
                index index.html index.htm;
            }

        }
        server {
            listen 80;
            server_name  www.dmstest.com;
            location / {
                # vue h5 history mode 时配置
                try_files $uri $uri/ /index.html;
           # 主目录小于子目录一个路径
                root D:/phpstudy_pro/WWW/Vue/XMTFDMSH/;
                index index.html index.htm;
            } 
            location ^~/XMTFDMSH/dmsWechat/ {
              proxy_redirect off;
              proxy_set_header Host $host;
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_pass http://127.0.0.1:8001/;
            }
        }
  • 相关阅读:
    简单理解OOP——面向对象编程
    SpringMVC拦截器
    Vue简洁及基本用法
    springMVC实现文件上传下载
    Python笔记⑤爬虫
    Python笔记4
    Python笔记3
    Python基础语法笔记2
    Python基础入门语法1
    Navicat连接mysql时候出现1251错误代码
  • 原文地址:https://www.cnblogs.com/HCXiao/p/14717306.html
Copyright © 2011-2022 走看看