WebFaction
Community site: login faq

I'm creating a django site that will allow users to point their custom domains to their profile on my site. (All the code that handles user domains is finished, tested and works fine)

I'm just wondering how this would work on WebFaction: can users use a CNAME to point their domain to my server (theirdomain.com > theirsite.mydomain.com)? In order for this to work, will I need to register each and every users' domain in my WebFaction control panel and link it with a website entry? I haven't been able to find a good answer about this from previous help topics.

Ideally I'd like to offer users to use A records: is it possible to allow a user to use an A record to point their domain to my server's IP? Again, would this require adding each user's domain (and a website record) to my WebFaction control panel?

This is the first time I've fiddled with user domains in a project so I don't have experience getting it all to work. Any help would be much appreciated!

Edit: Would purchasing a Dedicated IP make this easier in any way?

asked 22 May '13, 02:38

danr
313
accept rate: 0%

edited 22 May '13, 03:10


A CNAME record and A record would work the same in this case (recall that a CNAME is not a redirect, but an alias).

In either case, you will need to create the domain in the WebFaction control panel and attach it to your Django application in its website record (otherwise, the server would never be able to discern which application should be served on that domain). However, this is very easily done automatically using our API.

This means that your users can determine whether they'd rather use an A record or CNAME record. Purchasing a dedicated IP address would not make a difference, since the external port 80 would still go to our front-end Nginx server.

Hope that helps!

permanent link

answered 22 May '13, 03:43

ryans ♦♦
5.0k93460
accept rate: 43%

OK awesome, that's mostly what I expected. Great to hear that both A records and CNAME are available to users. Thanks for your help.

(22 May '13, 05:17) danr

How would a SSL certificate work if the site serves multiple custom domains? Would the certificate for the primary domain work for all the custom domains or would I need a SSL certificate for each custom domain?

Thanks

permanent link

answered 19 Feb '16, 18:38

ModernMarc
111
accept rate: 0%

If you purchase a SAN ("subject alternative names") certificate, you can associate multiple domains with a single certificate. If not, then you'll need a separate certificate for each.

(19 Feb '16, 18:55) seanf

I'm assuming I can't programmatically add domains to the certificate and I'd have to manually follow the secure-sites-https steps for each new domain?

https://docs.webfaction.com/user-guide/websites.html#secure-sites-https

(19 Feb '16, 19:07) ModernMarc

That's correct.

(19 Feb '16, 19:14) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×128
×76
×19
×2

question asked: 22 May '13, 02:38

question was seen: 3,346 times

last updated: 19 Feb '16, 19:14

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM