https://github.com/samthor/no-www
no-www hosting
https://github.com/samthor/no-www
Last synced: 2 months ago
JSON representation
no-www hosting
- Host: GitHub
- URL: https://github.com/samthor/no-www
- Owner: samthor
- License: apache-2.0
- Created: 2020-08-27T04:33:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T22:09:07.000Z (almost 6 years ago)
- Last Synced: 2024-04-17T19:11:04.286Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Go binary which should be run on "www." hostnames.
This does only a few things:
* removes all "www." prefix from the domain
* redirects to https:// only
* only responds to GET requests
For example:
* http://www.example.com => https://example.com
* http://www.www.foo.bar => https://foo.bar
* https://test.com => 404
* https://www.test.com/hello => https://test.com/hello
## JS source
JS source is as files only for convenience.
It's actually served from the inline version found in the Go source code.