• 8
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

I have example.com, test.example.com and example.org.

example.com and example.org are hosted on 2 different EC2 instances. I want example.org content to be shown at test.example.com.

This is what I have done -

  1. Installed letsencrypt ssl certificate for data.example.com (earlier only example.com and example.org had SSL vie LE).
  2. Added A record of example.org IP in the DNS of example.com so test.example.com now points to example.org IP.

Now when I open https://test.example.com, it is showing "your connection is not private" error. What am I doing wrong?

You need a certificate signed for the domain you're using it on.

If http://test.example.org is using example.com's SSL certificate, then yes, this is not OK and every browser will complain about it.

In your web server, you should set up a virtual host with its own SSL certificate for every domain server that needs one.

Look for the files in /etc/apache2/sites-available that correspond to each domain and make sure that:

  1. The configuration file corresponds to an SSL site (i.e. uses port 443 and sets SSL certificates properties for this site)
  2. Each site is configured to use its corresponding SSL certificate
  3. There's a symbolic link in /etc/apache2/sites-enabled pointing to the configuration file on sites-available
  4. You've restarted Apache after making any modification to these files
  • 0
Reply Report
      • 2
    • I have default-ssl.conf in sites-available and homer-le-ssl.conf in sites-enabled which has following data pastebin.com/xp4fp8Xt. But I have read that I shouldn't edit sites-enabled file, so how to enter ssl details for test.example.com?
    • Yo have to use different SSL certificates for every domain/site. Check your configuration in that homer-le-ssl.conf file. site-enabled dir files are usually symbolic links to files in sites-available directory - that way it gets very easy to enable or disable sites, by just creating and deleting symbolic links and restarting Apache.

Trending Tags