SYSTEM repository for specs.johnosproject.com redirects.
This repo contains only a simple index.html file that will be published as
GitHub Pages. At the same time the DNS records for
the use the GitHub.io servers as A records.
So, when the user require the http[s]://specs.johnosproject.com
url the DNS redirects it to the GitHub.io server where the index.html (or the
404.html) page is returned.
If the user required an http url, the GitHub.io server redirects it to the
https version of the same url.
Then, this page contains a JavaScript code that replace the window.location's
protocol and domain.
That's all.
Open a browser and go to the one of the following links:
After some redirect it should display the https://specs.johnosproject.org page and url.
Execute the following curl command into a shell:
curl -v -L -o /dev/null http://specs.johnosproject.com 2>&1 | egrep -i "> Host:|> GET|* Connected|< Server|< Location|SSL:"
* Connected to specs.johnosproject.com (185.199.111.153) port 80 (#0)
> GET / HTTP/1.1
> Host: johnosproject.com
< Server: GitHub.com
< Location: https://specs.johnosproject.com/
* Connected to specs.johnosproject.com (185.199.109.153) port 443 (#1)
> GET / HTTP/2
> Host: specs.johnosproject.com
< server: GitHub.com