|
我的第一篇博客 发布时间: 2026-04-18 22:21:08 浏览: 42839 赞: 2 AI总结 生成分享图 点击AI总结按钮生成本文摘要
测试
这是一篇测试文章欢迎来到JB的博客
什么语言开发的?
自己看后缀.JB当然是JB语言呀
什么是JB语言
实际上就是PHP啦!嘿嘿所谓的JB就是噱头而已只是
Nginx的伪静态做到的
伪静态代码
location ~ \.php$ {
if ($request_uri !~* "/favicon\.ico") {
return 301 $scheme://$host$request_uri;
}
rewrite ^(.*)\.php$ $1.jb permanent;
}
location ~ \.jb$ {
rewrite (.*)\.jb$ /$1.php;
add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "Thu, 01 Jan 1970 00:00:00 GMT";
add_header X-Cache-Status "MISS";
proxy_no_cache 1;
proxy_cache_bypass 1;
try_files $uri @php_fallback;
}
location @php_fallback {
fastcgi_no_cache 1;
fastcgi_cache_bypass 1;
fastcgi_pass unix:/tmp/php-cgi-81.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "session.cache_limiter='nocache'";
include fastcgi_params;
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$ {
expires 30d;
add_header Cache-Control "public, immutable";
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)$ {
expires 12h;
add_header Cache-Control "public, immutable";
error_log /dev/null;
access_log /dev/null;
}
泰裤辣!累计点赞: 2 |