zoukankan      html  css  js  c++  java
  • vue单页项目ngin常用配置

    常用配置项:


     

    server {
            listen       80;
            listen       443 ssl;
            server_name  www.baidu.net;
            include      vhost/ssl.conf;  #https证书
    
    
            #日志
            if ($time_iso8601 ~ "^(d{4})-(d{2})-(d{2})") {
                set $year $1;
                set $month $2;
                set $day $3;
            }
            access_log  /mnt/logs/www.baidu.com/$year-$month-$day-access.log;
            error_log   /mnt/logs/www.baidu.com/error.log    error;
           
            #自定义匹配规则
            location / {
              root     /mnt/project/www-baidu-com/dist;
              index  index.html index.html;
              try_files $uri $uri/ /index.html;
            }
    #代理转发 location
    ^~/api { proxy_pass http://apiappop.cbi360.net/; } #默认匹配项 location / { root /mnt/project/www-baidu-com/dist; index index.html index.html; try_files $uri $uri/ /demo/index.html; } }

     

     

     

     

     

  • 相关阅读:
    IO流
    异常,File,递归,IO流
    Collection接口 map
    使用canvas画出的时钟
    js对象2
    js对象
    js 猜数游戏、斗地主发牌、伪数字
    js函数2
    js函数
    js矩形,数组,杨辉三角
  • 原文地址:https://www.cnblogs.com/zhangruiqi/p/14178801.html
Copyright © 2011-2022 走看看