Mukautetut verkkotunnukset

From Miraheze Meta, Miraheze's central coordination wiki
This page is a translated version of the page Custom domains and the translation is 5% complete.
Outdated translations are marked like this.
Custom domains

Miraheze voi pyynnöstä asettaa wikit saataville mukautetuille verkkotunnuksille (kuten wiki.example.org). Ainoa asia, jota tarvitsemme, on se, että noudatat alla olevia ohjeita ja sinulla on SSL-varmenne wikillesi (ei SSL-varmennetta → ei mukautettua verkkotunnusta). Voit joko käyttää omaa SSL -varmenettasi (katso alla) tai voimme luoda sen sinulle Let's Encrypt-toiminnon avulla. Prosessi hoidetaan täysin ilman sinun väliintuloa/lisätyötä kuin osoittamalla verkkotunnus palvelimellemme (joten on helpompaa).

Steps

Setting up a custom domain is as easy as following 4 steps:

1.

Get a domain.

  • To set up a custom domain, you will need to get a domain. There are many reputable registrars such as Namecheap where you can purchase a domain. Don't want to pay money for a domain? Click here for free domain services.
2.

Point it to Miraheze.

  • Once you have a domain, you'll need to point it to Miraheze. You can either point the nameservers to Miraheze or set a CNAME record for the subdomain you want your wiki on pointing to mw-lb.miraheze.org.

Pointing the nameservers to Miraheze? Set the nameservers to "ns1.miraheze.org" and "ns2.miraheze.org" (contact your domain registrar if you don't know how to do this).

Lisää CNAME haluamaasi aliverkkotunnukseen (esim. "wiki.") ja osoita kohtaan "mw-lb.miraheze.org";

 Note:

Jos käytät Cloudflare-palvelinta DNS-palvelimelle, käy Cloudflare-sivulla nähdäksesi, miten se tehdään.


What should I choose?

Each option has different pros and cons:

Voit halutessasi asettaa verkkotunnuksesi nimipalvelimen Miraheze-asetukseksi. Huomaa, että kaikki verkkotunnuksesi kanssa käytetyt palvelut eivät ole käytettävissä, etkä voi hallita käyttämääsi verkkotunnusta.

  • If you choose to simply point a subdomain to Miraheze, you'll have complete control of your DNS records, but you'll need to manually set records yourself with your DNS provider.

3.

Choose who will provide an SSL certificate.

  • For your safety, Miraheze uses SSL/TLS to encrypt the connections from our servers to your browser to make sure no one intercepts your connection. For this reason, we require all custom domains to have an SSL certificate. You can either provide us your own SSL certificate (you would have to pay for it) or let us handle it completely (for free, via Let's Encrypt). This is the easier and Miraheze-recommended option. If you have no idea what SSL means or is, select the Let's Encrypt option.

Jos olet valinnut vaihtoehdon, että luomme sen (Let's Encrypt): Sinulla ei ole muuta tekemistä! Järjestelmänvalvoja huolehtii kaikista jäljellä olevista vaiheista, mukaan lukien niiden uusiminen.

Jos olet valinnut oman SSL-sertifikaatti: ylläpitäjä, jolla käsittelee CSR pyyntö pian tuottaa CSR ja yksityinen avain (jota käytetään oman palvelimet), ja pyydetyt CSR lähetetään sähköpostitse sinulle. Käytä tätä CSR pyytää SSL-varmenteen myyjä SSL-varmenteen kanssa CSR annoimme teille. Sinun on lähetettävä meille luotu SSL -varmenne sähköpostitse, kun tämä on tehty. Jos kaikki nämä vaiheet on tehty, lisäämme mukautetun verkkotunnuksen wikiisi ja ilmoitamme sinulle, kun tämä kaikki on tehty.

4.

Make the request!

  • Once you've done the steps above and have chosen who will provide the SSL certificate, make the request via RequestSSL. In the form, all you need to do is provide your wiki's current subdomain, your desired domain, and whether or not you'll use Let's Encrypt (us handling the SSL) or if you'll provide an SSL certificate yourself.
[[Special:RequestSSL|Custom domain request form (via RequestSSL)]]

Need help with any of the steps or have a question? Ask the community noticeboard for help.

Note for CloudFlare users

CloudFlare users must turn off CloudFlare's DDoS/Origin IP protection system/workers. This is not negotiable. With it enabled, Miraheze cannot process SSL certificate requests, and it creates problems with our internal systems, including security issues.

Our IPs are already public, so we do not need Origin IP protection, and we have DDoS protection through our network vendor.

Follow the steps to find out how to disable Cloudflare DDoS/Origin IP protection system (assuming you're using the dash.cloudflare.com dashboard).

  1. Go to dash.cloudflare.com
  2. Click your domain in the dashboard.
  3. Go to "DNS".

Add CNAME entry to mw-lb.miraheze.org. The cloud with an arrow must be grey. If it is yellow, click it to make it grey.

  1. Click "Add Record". The result has to look like the last image.

If you are done with this, continue back on the steps above.

 Note: Not following the rules above will result in your custom domain being removed immediately and further action being taken if necessary. In case of any doubt, feel free to contact us at sre(at)miraheze.org or ask on the Phorge task you create.

Cloudflare dashboard
Cloudflare dashboard
Domain section.
Domain section
Your entry should look like this!
Your entry should look like this!

FAQ

Ilmaiset aliverkkotunnukset

Jos et halua maksaa omasta verkkotunnuksestasi, on olemassa palveluita, jotka tarjoavat ilmaisia aliverkkotunnuksia, joita voit käyttää sen sijaan. Huomaa, että Miraheze-wikit saavat automaattisesti ilmaisen miraheze.org-aliverkkotunnuksen, joten kolmannen osapuolen palvelun käyttäminen on välttämätöntä vain, jos haluat jotain muuta (esim. palvelua, jolla on hyvin lyhyt tai helposti kirjoitettava toisen tason verkkotunnus).

Saatavilla olevat sivustot:

FreeeDNS example

Sign up with FreeDNS and log in. On the left side, click 'Registry' to select a domain (e.g., mine.bz). This will take you to a small form to fill in. Please avoid using a us.to domain, as it is impossible to generate a Let's Encrypt certificate for these. Add a subdomain (keep trying until you find an available one, e.g., mario). Select 'CNAME' for the type. In the destination field, enter mw-lb.miraheze.org, solve the captcha, and click the save button.

FreeDNS example setup
FreeDNS example setup.

Then follow the above step 4. Make the request!.

Can I change the URL structure?

Miraheze is configured not to serve pages from the domain root. For example, if your wiki is example.miraheze.org and its main page is called "Welcome", then the URL will not be https://example.miraheze.org/Welcome but instead https://example.miraheze.org/wiki/Welcome (note the /wiki/ piece). Likewise, even if you use a custom domain, Miraheze will still serve pages with this URL structure. When users visit pages on the root (e.g., without the /wiki/), they'll be greeted by a page asking them if they meant to go to a page on the /wiki/ subdirectory and will provide them a link.

SSL-varmentaja

Miraheze hyväksyy useimmat SSL-varmentajat, jotka hyväksyvät selaimet, kuten Mozilla Firefox. Emme kuitenkaan enää hyväksy WoSign-varmenteita.

Current authority used by Miraheze custom domains

Below is a list of the current SSL certificate authority used by custom domains. This does not mean that others not in this list are not accepted.

  • Let's Encrypt - managed by Miraheze, all steps regarding Let's Encrypt (except setting nameservers) are done by Miraheze system administrators
  • Comodo
  • Gandi
  • GeoTrust
  • GlobalSign
  • GoDaddy
  • RapidSSL