JS micro-channel configuration interface to configure the security domain names -Nginx

1, the downloaded txt files in / usr / local / nginx / html / directory.

 

2, modify the location of the tag in the configuration file nginx.cong

location / {
            root   html;
            index  index.html index.htm;
            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;
        }

3, remember to restart nginx addition was complete after service

We use this domain name + txt file's browser will be able to visit

Then the proper

 

Guess you like

Origin www.cnblogs.com/YuanWeiBlogger/p/11964878.html