• ecstoreshoapdmin伪静态和vue404tryfiles共存配置 + shopex 一级和二级手机版waptouch目录伪静态共存


    server
    {
    listen 80 default_server;
    #listen [::]:80 default_server ipv6only=on;
    server_name www.a.com a.com;
    index index.html index.htm index.php;
    root /home/wwwroot/ecs1;
    #error_page 404 /404.html;
    # return 301 https://www.a.com$request_uri;
    
     
    include enable-php-pathinfo.conf;
    
    
     
    location / {
    if (!-e $request_filename) {
    rewrite ^/(.*)$ /index.php/$1 last;
    }
    location ~ ^/shopadmin {
    rewrite ^/(.*)$ /index.php/$1 last;
    }
    }
    location /h5 {
    try_files $uri $uri/ /h5/index.html;
    }
    
    
    location /nginx_status
    {
    stub_status on;
    access_log off;
    }
    
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
    expires 30d;
    }
    
    location ~ .*\.(js|css)?$
    {
    expires 12h;
    }
    
    location ~ /.well-known {
    allow all;
    }
    access_log /home/wwwlogs/a.log;
    }
    #server
    # {
    # listen 443;
    # ssl on;
    # ssl_certificate cert/5021234_www.a.com.pem;
    # ssl_certificate_key cert/5021234_www.xiongshilogistics.com.key;
    # ssl_session_timeout 5m;
    # ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    # ssl_prefer_server_ciphers on;
    # server_name www.xiongshilogistics.com a.com;
    # index index.html index.htm index.php;
    # root /home/wwwroot/ecs1;
    # #error_page 404 /404.html;
    
    # include enable-php-pathinfo.conf;
    # include shopex.conf;
    # location /nginx_status
    # {
    # stub_status on;
    # access_log off;
    # }
    
    # location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    # {
    # expires 30d;
    # }
    
    # location ~ .*\.(js|css)?$
    # {
    # expires 12h;
    # }
    
    # location ~ /.well-known {
    # allow all;
    # }
    # access_log /home/wwwlogs/a.log;
    #}
    

      

    shopex-485,主站和手机版waptouch伪静态共存

    http://www.a.com/

    http://www.a.com/waptouch

     location /waptouch/ {
                    if (!-e $request_filename) {
    	            rewrite ^/waptouch/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /waptouch/index.php?$1 last; 
                }
            }
            location / {
                if (!-e $request_filename) {
    	            rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last; 
                }
            }
    

      

  • 相关阅读:
    VS2010+C#写的3D的Android游戏开源咯....不来看别后悔哦。
    把XAML放在服务端,即改即现.....
    TagSL框架设计(1)先来点简介
    OpenMP模式下多线程文件操作 (转)
    VS获取工程版本信息
    OpenMP模式下多线程文件操作(五)
    简单建立DLL和使用DLL
    OpenMP模式下多线程文件操作(三)
    OpenMP模式下多线程文件操作(四)
    【转】VC2008在工具栏Toolbar里添加XP风格spin box control控件
  • 原文地址:https://www.cnblogs.com/showker/p/16078476.html
Copyright © 2020-2023  润新知