1Answer
  • 11
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

How to get SSL on a service?

I'm building a website which uses a routing (as in street nav) service which I'm running on a seperate server on port 8002 (running ubuntu 16.04). (Github link to the router project)

The website itself is hosted by one.com. The problem arises when I use SSL on the website.

Because my route server has no SSL certificate, I get an error when I try to retrieve the route. The routing server is just using a public IP adress.

The router uses this webserver but I can't find any information on how to implement an SSL certificate on it.

My question is, what would be the best way to get this working properly while I keep hosting the routing service on my own server.

I was thinking of creating a script on the website server that handles the route retrieval instead of the browser(not sure yet if this approach would work).

Please excuse me if my lack of knowledge on this subject is all too apparent. I'm just getting started experimenting with this and I'm still learning.

Easy approach: Set up Apache or nginx as a reverse proxy in front of all this, give them a proper SSL cert (e.g. LetsEncrypt) and then get the data via plain HTTP from the backend and send it to the clients via HTTPS.

  • 3
Reply Report

Trending Tags