Skip to content

vincascm/web-jingzi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-jingzi

mirror of website with domain name substitution

config file:

please check this file

install and run:

download binary file from release page release page

and run it:

web-jingzi [full path config file]

with nginx:

    server {
        server_name x.com *.x.com y.com *.y.com;

        location / { 
            proxy_http_version 1.1;
            proxy_set_header Host $http_host;
            proxy_pass http://127.0.0.1:3003;
        }
    }
    server {
        listen 443 ssl;
        server_name x.com *.x.com y.com *.y.com;
		# add tls certificate here

        location / { 
            proxy_http_version 1.1;
            proxy_set_header host $http_host;
            proxy_set_header X-Scheme https;
            proxy_pass http://127.0.0.1:3003;
        }
    }

website test result

  1. [ok] www.google.com
  2. [ok] www.wikipedia.org
  3. [ok] zh.wikipedia.org