ecstore-shoapdmin伪静态和vue404tryfiles共存配置 + shopex 一级和二级手机版waptouch目录伪静态共存
Posted on 2022-03-30 18:40 Showker 阅读(40) 评论(0) 编辑 收藏 举报1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | 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
1 2 3 4 5 6 7 8 9 10 | 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; } } |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
2017-03-30 ios开发笔记