虚心使人进步

虚心学习,天天向上......
随笔 - 274, 文章 - 2, 评论 - 161, 阅读 - 76万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 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 1 2 3 4 5
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;
           }
       }

  

相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
历史上的今天:
2017-03-30 ios开发笔记
点击右上角即可分享
微信分享提示