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/;
            }
        }
  • 相关阅读:
    64最长和谐子序列(594)
    63找到字符串中所有字母异位词(438)
    62有效的数独(36)
    10.10
    9.27作业
    9.27
    9.26
    9.25
    9.18学习内容
    9.17作业
  • 原文地址:https://www.cnblogs.com/HCXiao/p/14717306.html
Copyright © 2011-2022 走看看