JB博客
我的第一篇博客
发布时间: 2026-04-18 22:21:08 浏览: 42839 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;
}

泰裤辣!

发表评论 - 游客
昵称:
邮箱:
内容:
雨夜2026-05-19 12:01[中国 广东 江门]
这界面,梦回2006年
回复
zjb2026-05-04 14:41[中国 河北省 石家庄市]
测试
回复
1232026-04-19 19:46
699
回复
重明鸟2026-04-19 19:27
牛逼
回复
重明鸟2026-04-19 19:29
666
回复
重明鸟2026-04-18 23:49
你好
回复