自定網域名(自訂網址)
你可以對Miraheze提出自訂網域名的申請(網址像wiki.example.org)。為此,您需要根據以下步驟,並且準備好一個SSL憑證給你的維基(沒有SSL憑證→無法自訂網址)。你可以使用自己的SSL憑證或者由我們用[$LE Let's Encrypt]替你建立(後者是個比較簡單的作法,使用Let's Encrypt的話,能夠完全處理其他設定流程,你就不需要再做其他的事):
步驟
要設定自定網域非常簡單,只需依照下列4個步驟執行即可:
1.Get a domain.
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.
將伺服器名改為「ns1.miraheze.org」和「ns2.miraheze.org」(如果你不知道該怎麼做,請聯繫你的域名註冊商)
給想要的子域名(例如「wiki.」)添加CNAME,然後指向"mw-lb.miraheze.org";
Note:
如果你想為自己的DNS伺服器使用Cloudflare,請參見Cloudflare查看如何使用。
- What should I choose?
Each option has different pros and cons:
你可能希望將自己網域名的nameserver設成指向Miraheze的網域名。請注意這樣做的話,任何與你的網域有關的服務都將無法使用,而你也無法控制使用中的網域。
- 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.
如果是 Let's Encrypt:那你就沒其他事要做了,系統管理員會注意其餘的所有(包含更新的)步驟。
If you have chosen your own SSL certificate: After you make your custom domain request, a system administrator who handles CSR requests will generate a CSR & private key (for use on our own servers), and the requested CSR will be emailed to you. You use this CSR to request your SSL certificate vendor to generate an SSL certificate with the CSR we gave you. You will need to email us the generated SSL certificate when this is done. If all of these steps are done, we will add the custom domain to your wiki, and we will notify you when this all is done.
4.Make the request!
- Once you've done the steps above and have chosen who will provide the SSL certificate, make the request on Phabricator. 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.
在步驟實行上需要幫助嗎?抑或你有其他問題?Reception123和NDKilla都能幫助你。
Note for CloudFlare users
This section documents a technical policy. This policy follows consensus and/or guidelines set by members of Site Reliability Engineering. All SRE members, or, where applicable in technical matters, users, should follow this policy. Suggestions should be made on the talk page. |
Our IPs are already public, so we do not need Origin IP protection, and we have DDoS protection through our network vendor.
根據以下步驟,來關閉 Cloudflare 的 DDoS/Origin IP protection system. 以下步驟是以您使用[dash.cloudflare.com dash.cloudflare.com] 的控制台為前提所建議的
- 進入dash.cloudflare.com
- Click your domain in the dashboard.
- 進入 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.
- 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
miraheze.org or ask on the Phabricator task you create.
FAQ
免費網域
你可以用任何想要的網域註冊免費子網域(只要你在網站上擁有網域的話)來取代Miraheze的網域。有些網域名非常短,你可以在你的維基使用最完整的網域名。
可用的網站:
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 憑證管理
Miraheze接受大部份瀏覽器接受的SSL憑證管理。然而,我們永遠不接受WoSign的憑證。
Miraheze目前自制網域使用的憑證管理。
下表為目前自製網域名使用的SSL憑證管理。不過不代表我們不接受其他未列於下表的憑證。
- Let's Encrypt - 由Miraheze管理,Miraheze的系統管理員會幫忙完成(除設置nameservers外的)所有Let's Encrypt相關程序。
- Comodo
- Gandi
- GeoTrust
- GlobalSign
- GoDaddy
- RapidSSL