了解NGINX配置

时间:2018-09-18 15:47:49

标签: nginx configuration config

我对NGINX非常陌生,我找到了此配置文件。有人可以给我解释一下吗?预先谢谢你。

worker_processes auto;
events {worker_connections 1024;}
http {
    include mime.types;
    default_type application/octet-stream;
    sendfile on;
    gzip on;

    server {
        listen 80;
        server_name yourdomain.com;
        location / {
        proxy_pass https://website.org/;
        proxy_set_header Accept-Encoding "";
        proxy_set_header Host https://website.org/;
        proxy_set_header CF-Connecting-IP "";
        subs_filter '<a href="/help" title="How do I download?">How do I download?</a>' '<a href="https://someproxysite.com/" title="Proxy List">More Proxy Sites</a>';
        subs_filter '<a href="/login" title="Login">Login</a> |' '';
        subs_filter '<a href="/register" title="Register">Register</a> |' '';
        subs_filter 'https://website.org/' $host;
    }

    location /login {return 403;}

    location /register {return 403;}

    }
}

0 个答案:

没有答案
相关问题