zoukankan      html  css  js  c++  java
  • ng一个域名配置两个页面


    server {
    listen 80;
    server_name localhost;
    location / {
    root /opt/;
    # try_files $uri $uri/ /index.html;
    # index index.html index.htm;
    }

    location /admin {
    alias /opt/aiqs-adminnew/;
    try_files $uri $uri/ /index.html;
    index index.html index.htm;
    # rewrite ^/.*/$ / last; # Redirect everything to / (ex index.html) and let the JS router take care of the rest
    # rewrite ^([^.]*[^/])$ $1/ permanent; # Force trailing slash
    }

    location /app {
    alias /opt/aiqs-h5old/;
    try_files $uri $uri/ /index.html;
    index index.html index.htm;
    # rewrite ^/.*/$ / last; # Redirect everything to / (ex index.html) and let the JS router take care of the rest
    # rewrite ^([^.]*[^/])$ $1/ permanent; # Force trailing slash
    }

    #转发 

    location /client {
    proxy_pass http://******.****.****.com/;
    }

    同时页面更改 homepage:"."

    增加 # 寻找所有js css

    talk is cheap. show me the code.
  • 相关阅读:
    git 命令
    Spring Boot Web应用开发 CORS 跨域请求支持
    layui demo
    jQuery jqGrid 4.7
    jQurey zTree Demo 3.5
    jQurey zTree API 3.5
    jQurey Select2 4.0
    jQurey Validation 1.16
    Laytpl 1.2
    My97DatePicker 4.8
  • 原文地址:https://www.cnblogs.com/yushizhang/p/13450661.html
Copyright © 2011-2022 走看看