怎样在小程序里实现标题的更改
892
2022-09-26
laravel nginx 配置
server { server_name 192.168.0.193; listen 100; add_header Strict-Transport-Security max-age=15768000; index web.html index.php index.htm; #讲希望显示的页面放前面(web.html) root /data/ charset utf-8; if ($host != "192.168.0.193"){ set $block "${block}3"; } if ($block = "0123"){ return 444; } location ~ /.well-known { allow all; }#配置你的的api请求 location /api/ { root /data/ index index.php; try_files $uri $uri/ /index.php?$query_string; }#配置你的超管的api请求 location /adm/ { root /data/ index index.php; try_files $uri $uri/ /index.php?$query_string; } location /apptest { index /web.html; try_files $uri $uri/ /web.html; } #web后台的 如果你想你的域名/web访问 location /web { index /web.html; try_files $uri $uri/ /web.html; proxy_connect_timeout 300s; proxy_send_timeout 900; proxy_read_timeout 900; proxy_buffer_size 128k; proxy_buffers 8 128k; proxy_busy_buffers_size 128k; proxy_redirect off; proxy_hide_header Vary; proxy_set_header Accept-Encoding ''; proxy_set_header Referer $ proxy_set_header Cookie $ proxy_cookie_path ~*^/.* /; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } #超管的 如果你想你的域名/test访问location /test { index /admin.html; try_files $uri $uri/ /admin.html; proxy_connect_timeout 300s; proxy_send_timeout 900; proxy_read_timeout 900; proxy_buffer_size 128k; proxy_buffers 8 128k; proxy_busy_buffers_size 128k; proxy_redirect off; proxy_hide_header Vary; proxy_set_header Accept-Encoding ''; proxy_set_header Referer $ proxy_set_header Cookie $ proxy_cookie_path ~*^/.* /; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }#配置你的超管的api请求location /adm { index /admin.html; try_files $uri $uri/ /admin.html; proxy_connect_timeout 300s; proxy_send_timeout 900; proxy_read_timeout 900; proxy_buffer_size 128k; proxy_buffers 8 128k; proxy_busy_buffers_size 128k; proxy_redirect off; proxy_hide_header Vary; proxy_set_header Accept-Encoding ''; proxy_set_header Referer $ proxy_set_header Cookie $ proxy_cookie_path ~*^/.* /; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }#配置你的正常的api请求 location / { #root /usr/local/nginx/html; #index index.php index.html index.htm; try_files $uri $uri/ /index.php?$query_string; #index /index.html; #try_files $uri $uri/ /index.html; # try_files $uri $uri/ /web.html; proxy_connect_timeout 300s; proxy_send_timeout 900; proxy_read_timeout 900; proxy_buffer_size 128k; proxy_buffers 8 128k; proxy_busy_buffers_size 128k; proxy_redirect off; proxy_hide_header Vary; proxy_set_header Accept-Encoding ''; proxy_set_header Referer $ proxy_set_header Cookie $ proxy_cookie_path ~*^/.* /; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /thtappsra_dmintransfer { rewrite ^/rapidzwebsocket/(.*) / break; proxy_pass_header Server; proxy_set_header Host $ proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; #proxy_pass #allow 192.168.0.7; #allow 192.168.0.1; #allow 112.73.1.92; #deny all; } location /htlongconnect { rewrite ^/rapidzwebsocket(.*) break; proxy_next_upstream error; gzip on; gzip_min_length 1000; gzip_proxied any; proxy_buffering off; keepalive_timeout 65; #proxy_pass proxy_read_timeout 60s; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header Host $ proxy_1.1; proxy_set_header Upgrade $ proxy_set_header Connection "Upgrade"; #proxy_set_header Connection $connection_upgrade; } #location @router { # rewrite ^.*$ /admin.html last; #} location ~ [^/]\.php(/|$) { #fastcgi_pass remote_php_ip:9000; fastcgi_pass unix:/tmp/php-cgi.sock; #php cgi 路径 fastcgi_index index.php; include fastcgi.conf; } #location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ { #expires 30d; #access_log off; #} #location ~ .*\.(js|css)?$ { #expires 7d; #access_log off; #} location ~ /\.ht { deny all; }}
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~