Project

General

Profile

Ungleich static web hosting » History » Version 13

ll nu, 03/25/2020 05:58 PM

1 1 Timothée Floure
h1. Ungleich Static Web Hosting
2
3
{{toc}}
4
5
*%{color:green}This document concerns end-users/customers. See [[The ungleich static web hosting infrastructure]] page for server-side documentation.%*
6
7
h2. Status
8
9 7 Timothée Floure
This document is *in PRODUCTION*.
10 1 Timothée Floure
11
h2. Overview
12
13
Our "static web hosting offer":https://ungleich.ch/u/products/zerocarbon-webhosting-with-ipv6/ is dead simple: you get an SFTP-accessible storage share which is served by a dual-stack (IPv4+IPv6) NGINX web server.
14
15
h2. FAQ
16
17
h3. Q: How do I upload files?
18
19 2 Timothée Floure
We offer you an SFTP interface which is authenticated against our (LDAP) customer directory, which means you can use your ungleich username and password.
20 1 Timothée Floure
21 10 Timothée Floure
* Host: staticwebhosting.ungleich.ch
22 2 Timothée Floure
* Port: 22
23
* Username: your ungleich username
24
* Password: your ungleich password
25
26
You can use the cross-platform "FileZilla (S)FTP client":https://filezilla-project.org/ if you do not know where to start.
27
28 1 Timothée Floure
h3. Q: Can I use SSH keys?
29
30 2 Timothée Floure
Yes! You just have to upload your own @authorized_keys@ file in @.ssh/authorized_keys@.
31 1 Timothée Floure
32
h3. Q: Do I need my own domain name?
33
34 3 Timothée Floure
We expect that most people will use their own domain but you can access the files stored under @public_html@ at @https://staticwebhosting.ungleich.ch/~YOURUSERNAME/@.
35 1 Timothée Floure
36
h3. Q: How do I configure a domain? How many domains can I serve?
37
38 8 Timothée Floure
You can point as many domains as you want to this service (on demand). You will first have to set:
39 1 Timothée Floure
40 9 Timothée Floure
* An @A@ record for IPv4, pointing to @185.203.114.169@.
41 8 Timothée Floure
* An @AAAA@ record for IPv6, pointing to @2a0a:e5c0:2:12:0:f0ff:fea9:c3c8@.
42
* ... or (instead of @A@ and @AAAA@) a @CNAME@ record point to @staticwebhosting.ungleich.ch@.
43 2 Timothée Floure
44 1 Timothée Floure
h3. Q: What web server do you use? Can you enable X for me?
45
46 2 Timothée Floure
We use "NGINX":http://nginx.org/ and can reasonable features / configuratiob on demand.
47 1 Timothée Floure
48
h3. Q: How can I make a static website?
49
50 4 Timothée Floure
You have various alternatives:
51 5 Timothée Floure
* Write HTML/CSS by hand.
52 11 Timothée Floure
* Use a static website generator intended to somewhat technical people ("Jekyll":https://jekyllrb.com/, "Hugo":https://gohugo.io/, "Pelican":https://blog.getpelican.com/, "Hakyll":https://jaspervdj.be/hakyll/, "cstate":https://github.com/cstate/cstate, ...)
53 5 Timothée Floure
* Use a static website generator intended to standard end-users ("Publii":https://getpublii.com/).
54 12 ll nu
  
55
h2. Deploying static websites with custom domain names
56
57
h3. Point your custom domain name entries to the staticwebhosting's ips.
58
As described "here":https://redmine.ungleich.ch/projects/open-infrastructure/wiki/Ungleich_static_web_hosting#Q-How-do-I-configure-a-domain-How-many-domains-can-I-serve
59
60
h3. Log into staticwebhosting:
61
sftp $YOUR_USERNAME@staticwebhosting.ungleich.ch
62
63
h3. Create your website's directory:
64
mkdir public_html/$YOUR_FULL_DOMAIN_NAME
65
e.g:
66
mkdir public_html/my.beautifulwebsite.com
67
68
h3. Place your html/css files there
69
70
h3. Open a support request or ping us via chat to finalize the setup.
71
Dont forget to include your domain name.