<commit_before>server {
    listen       80;
    server_name  dev.cc localhost;

    root html;
    #access_log  logs/dev.access.log  main;
    access_log  logs/dev.access.log  dev;

    # 识别移动设备
    if ($http_user_agent ~ (iPhone|iPad|Android))
    {
        rewrite ^/(.*)$ http://m.dev.cc/$1 break;
    }

    location / {
        index index.php index.html index.htm;

        # 对 IE 进行限速
        if ($http_user_agent ~ "MSIE") {
            limit_rate 1k;
        }
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    # 静态文件代理
    location ~ /static/ {
        rewrite "^/static/(.*)$" /static/$1 break;
    }

    # 不记录 favicon.ico 错误日志
    location ~ (favicon.ico){
        log_not_found off;
        expires 100d;
        access_log off;
    }

    # 静态文件设置过期时间
    location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
        expires max;
        break;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        if ($request_uri ~* test\.php\?a=b)<commit_msg>加入可参考配置 :four_leaf_clover:<commit_after>server {
    listen       80;
    server_name  dev.cc localhost;

    root html;
    #access_log  logs/dev.access.log  main;
    access_log  logs/dev.access.log  dev;

    # 识别移动设备
    if ($http_user_agent ~ (iPhone|iPad|Android))
    {
        rewrite ^/(.*)$ http://m.dev.cc/$1 break;
    }

    location / {
        index index.php index.html index.htm;

        # 对 IE 进行限速
        if ($http_user_agent ~ "MSIE") {
            limit_rate 1k;
        }
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    # 静态文件代理
    location ~ /static/ {
        rewrite "^/static/(.*)$" /static/$1 break;
    }

    # 不记录 favicon.ico 错误日志
    location ~ (favicon.ico){
        log_not_found off;
        expires 100d;
        access_log off;
    }

    # 静态文件设置过期时间
    location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
        expires max;
        break;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    location ~ /plate/get_egg_data/ {
        fastcgi_pass   127.0.0.1:9000;
        include        fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME   /home/work/api/get_egg_data.php;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        if ($request_uri ~* test\.php\?a=b)
{'fraction_non_alphanumeric': 0.12947658402203857, 'fraction_numerical': 0.04338842975206612, 'mean_word_length': 1.7048417132216014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1950171', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1109, 'n_words': 225}