| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #------------------------大数据平台前端------------------
- server{
- listen 80;
- charset utf8;
- server_name 114.55.0.7;
- client_header_buffer_size 32k;
- large_client_header_buffers 4 32k;
-
- location / {
- root /data/bigdata_vue_frond/dist;
- index index.html;
- add_header Access-Control-Allow-Origin *;
- etag on;
- }
- location /app {
- alias /data/app_file;
- index big_data.apk;
- add_header Access-Control-Allow-Origin *;
- # 开启索引功能
- autoindex off;
- # 关闭计算文件确切大小(单位bytes),只显示大概大小(单位kb、mb、gb)
- autoindex_exact_size off;
- # 显示本机时间而非 GMT 时间)
- autoindex_localtime on;
- }
- location /download_files {
- #文件所在的文件夹
- alias /data/download_files;
- sendfile on;
- autoindex on;
- autoindex_exact_size on;
- autoindex_localtime on;
- charset utf-8;
- }
- location /qxz {
- root /data/bigdata_test/bigdata/templates/qxz;
- index index.html;
- add_header Access-Control-Allow-Origin *;
- }
- location /down/excel/ {
- alias /data/www/down/export/excel/;
- }
- location ~ ^(images|javascript|js|css|flash|media|static)/ {
- root /data/bigdata_vue_frond/dist/static;
- expires 10d;
- }
- }
- #------------------------托莱斯气象站登录页------------------
- server{
- listen 80;
- charset utf8;
- server_name www.zztlskj.com;
- client_header_buffer_size 32k;
- large_client_header_buffers 4 32k;
- location /qx {
- alias /data/bigdata_vue_frond/dist;
- index index.html;
- add_header Access-Control-Allow-Origin *;
- }
- location / {
- root /data/bigdata_vue_frond/dist;
- index other.html;
- add_header Access-Control-Allow-Origin *;
- }
- location /down/excel/ {
- alias /data/www/down/export/excel/;
- }
- location ~ ^(images|javascript|js|css|flash|media|static)/ {
- root /data/bigdata_vue_frond/dist/static;
- expires 10d;
- }
- }
|