WebFaction
Community site: login faq

I think I'm getting close to running my app as both http and https.

  1. In webfaction, I already have my node.js application up and running on the domain.
  2. In the control panel, I created a second website that also uses this application but with https
  3. I have my ssl certificate and key installed on my server.
  4. I have both http.createServer... and tls.createServer running, each with a different port.

So I now have the app running on two ports, one for http and the other for https.

Do I have to create a duplicate application (and deploy to both separately) for the https app now?

asked 13 Aug '14, 18:39

vegan
31411
accept rate: 50%


We do all of our SSL negotiation on the front-end Nginx server, so you don't need to run Node as SSL on the back-end. Just use http.createServer on your assigned port and run the same app on both the HTTP and HTTPS sites.

permanent link

answered 13 Aug '14, 18:54

seanf
12.2k41836
accept rate: 37%

Does WF include a key and cert for my domain?

(13 Aug '14, 19:20) vegan

We have a shared *.webfaction.com certificate that will be used if you do not provide your own certificate and key. Please note that if you want to use your own certificate and key, then you need to open a ticket so that we can configure the web server to use it.

(13 Aug '14, 19:38) seanf

When I do this, it says the url does not match the domain, and it's looking for *.webfaction.com

(13 Aug '14, 19:52) vegan

That is the expected behavior. "*.webfaction.com" does not match your domain, so you get the warning about the mismatch. If you have a certificate for your domain and want to use it, then please open a support ticket so that we can install it for you.

(13 Aug '14, 19:55) 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:

×74
×67
×10

question asked: 13 Aug '14, 18:39

question was seen: 3,715 times

last updated: 13 Aug '14, 19:55

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