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/;
            }
        }
  • 相关阅读:
    OS-lab4
    OS-lab3
    OS-lab2
    OS-lab1
    OO第四单元总结
    OO第三单元总结
    OO第二单元总结
    HTTP_POST
    实习日志1(2020.7.27-2020.9.31)
    Web app ------ 从Servlet读取Json数据并显示,生成历史数据曲线图
  • 原文地址:https://www.cnblogs.com/HCXiao/p/14717306.html
Copyright © 2011-2022 走看看