Custom Domain

Add your own domain name to your Neocities site!

<% if flash.keys.length > 0 %>
<% flash.keys.each do |key| %> <%== flash[key] %> <% end %>
<% end %>

Adding a custom domain allows you to have a domain name attached to your web site. So if you had a domain like catsknitting.com, you could have it point to your Neocities site!

You will have to purchase a domain name from a registrar like Namecheap, and then add an A record to point your domain (catsknitting.com) to the following IP address:

198.27.81.179

If you want to add a www subdomain, or use a wildcard that will answer to everything (*), you will have to make a CNAME pointing to catsknitting.com for www and/or *.

After that, you can add the domain to the box below (just the catsknitting.com, don't add any subdomains), and your domain should come online within 5 minutes:

<%== csrf_token_input_html %>

Add SSL Certificate

This allows you to add an SSL key and certificate for your domain, enabling encryption for your site (https). It can take up to 5-30 minutes for the changes to go live, so please be patient. All files must be in PEM format. If your certificate is not bundled with the root and intermediate certificates, ask your certificate provider for help on how to do that.

<% if current_site.domain.nil? || current_site.domain.empty? %>

Cannot upload SSL certificate until domain is added.

<% else %>
<%== csrf_token_input_html %>

Status: <%= current_site.ssl_installed? ? 'Installed' : 'Inactive' %>

SSL Key (yourdomain.com.key):

Bundled Certificates (yourdomain.com-bundle.crt):

<% end %>