测试nginx配置文件语法是否高亮

post.url page.url /2022/01/04/ip/ site.url https://beep.vip

你的IP是: 180.119.250.206

curl hzip.net -L
curl https://hzip.net

nginx 未显示代码高亮,与自定义的<code>起冲突。

server {
    listen 80;
    server_name p.wjssl.com;

    location / {
        return 301 https://p.wjssl.com$request_uri;
    }
}

server {
    listen 443 ssl http2;
    server_name p.wjssl.com;

    ssl_certificate /etc/nginx/ssl/full_chain.pem;
    ssl_certificate_key /etc/nginx/ssl/private.key;
    add_header Content-Type 'text/html; charset=utf-8';
    location / {
            proxy_pass http://127.0.0.1:8000/; #8000为bittorrent-tracker默认端口,请根据自己设置修改
            proxy_http_version 1.1;
            proxy_set_header        Host            $host;
            proxy_set_header        Upgrade         $http_upgrade;
            proxy_set_header        Connection      "upgrade";
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
    location = /favicon.ico {  
    log_not_found off;
    access_log off;
}
}