web-jingzi
web-jingzi copied to clipboard
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
- [x] [ok] www.google.com
- [x] [ok] www.wikipedia.org
- [x] [ok] zh.wikipedia.org