WebFaction
Community site: login faq

I have tried the instructions listed here https://docs.webfaction.com/software/static.html#redirect-a-domain-with-a-static-cgi-php-app but it doesn't seem to work with a NodeJS site.

Is there a way to redirect http requests to a https equivelant?

asked 04 Nov '18, 23:03

barnold
114
accept rate: 100%


The way the instructions on our documentation are written, it doesn't matter what framework you use to serve https traffic.

To achieve this, you need two websites, one http and one https.

The redirect application will handle http traffic and redirect everything to https that will then be handled by your nodejs site.

permanent link

answered 19 Nov '18, 16:27

iliasr ♦♦
2.1k14
accept rate: 35%

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
×73
×67
×27
×15

question asked: 04 Nov '18, 23:03

question was seen: 242 times

last updated: 19 Nov '18, 16:27

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