Custom domains/zh-tw

你可以對Miraheze提出自訂網域名的申請（網址像wiki.example.org）. 為此，您需要根據以下步驟，並且準備好一個SSL憑證給你的維基（沒有SSL憑證→無法自訂網址）. 你可以使用自己的SSL憑證或者由我們用[$LE Let's Encrypt]替你建立（後者是個比較簡單的作法，使用Let's Encrypt的話，能夠完全處理其他設定流程，你就不需要再做其他的事）：

步驟
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. 將伺服器名改為「ns1.miraheze.org」和「ns2.miraheze.org」(如果你不知道該怎麼做，請聯繫你的域名註冊商) 給想要的子域名（例如「wiki.」）添加CNAME，然後指向"mw-lb.miraheze.org"；
 * Once you have a domain, you'll need to point it to Miraheze. You can either point the namespace servers to Miraheze or set a CNAME record for the subdomain you want your wiki on pointing to mw-lb.miraheze.org.

如果你想為自己的DNS伺服器使用Cloudflare，請參見Cloudflare查看如何使用.

Each option has different pros and cons: 你可能希望將自己網域名的nameserver設成指向Miraheze的網域名. 請注意這樣做的話，任何與你的網域有關的服務都將無法使用，而你也無法控制使用中的網域.
 *  What should I choose? 
 * 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. 如果是 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 at 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! Custom domain request form (via Phabricator)
 * 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 or let us handle it completely (for free, via Let's Encrypt). If you have no idea what SSL means or is, select the Let's Encrypt option.
 * 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


如果您的網域是由 Cloudflare 提供，當您要在 Miraheze 使用該網域時，切記要關閉 DDoS/Origin IP protection system. 填寫Phabricator的 這個表單來申請CSR（或直接申請憑證） 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] 的控制台為前提所建議的

Add  entry to. The cloud with an arrow must be grey. If it is yellow, click it to make it grey.
 * 1) 進入dash.cloudflare.com
 * 2) Click your domain in the dashboard.
 * 3) 進入 DNS


 * 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.

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@undefinedmiraheze.org or ask on the Phabricator task you create.

免費網域
你可以用任何想要的網域註冊免費子網域(只要你在網站上擁有網域的話)來取代Miraheze的網域. 有些網域名非常短，你可以在你的維基使用最完整的網域名.

可用的網站：


 * FreeDNS
 * Freenom

Can I change the URL structure?
Miraheze is configured not to serve pages from the domain root. For example, if your wiki is  and its main page is called "Welcome", then the URL will not be   but instead   (note the   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 ), 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相關程序.
 * CloudFlare (Note: Additional restrictions apply. See section above for details.)
 * Comodo
 * Gandi
 * GeoTrust
 * GlobalSign
 * GoDaddy
 * RapidSSL