TEDOC

Member
Jan 9, 2013
6
0
1
cPanel Access Level
Root Administrator
Hi Guys 1st Post YAY!

I have an issue with https://www.tedoc.com.au
being redirected to my IP address and bringing up the default webpage page.

the problem lies with the following part of the Apache configuration:

<VirtualHost 175.107.185.10:443>
ServerName *.tedoc.com.au
ServerAlias www.*.tedoc.com.au
DocumentRoot /usr/local/apache/htdocs

Notice how the document root setting is directing connections to the IP via SSL to the wrong location.

I would say this is caused by the wildcard certificate, which cPanel has issues with sometimes. It could also be caused by the SSL certificate being set up on the shared IP address.

Luckily I should be able to fix it by editing the Apache configuration and setting the DocumentRoot value to the correct location of your site. But i do not know how to do this???

Any help would be appreciated. Also when i do fix it will my non secure site still run.
 

TEDOC

Member
Jan 9, 2013
6
0
1
cPanel Access Level
Root Administrator
Update!

I have changed the document root to /home/tedoc/public_html

But I am now getting a 500 Internal Server Error. Any ideas on what I have missed?
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,918
131
368
SLC
cPanel Access Level
DataCenter Provider
run the script

/scripts/chownpublichtmls and if that doe not cure it


reinstall the certificate with the correct user I suspect it set to run as nobody if you had it going to the roots apache directory

(if it is a shared ip then it needs to be set a nobody)
 

TEDOC

Member
Jan 9, 2013
6
0
1
cPanel Access Level
Root Administrator
I ran that script and it did not help.

I have now deleted and reinstalled the certificate, as the tedoc user.

And now I getting this error instead.
2013_01_14_10_41_08_https_www.tedoc.com.au_failed_to_load.png

And here is the error log

2013_01_14_10_45_01_s1003379_on.png

The WHM/Cpanel install has 1 IP, (175.107.185.10) it is currently running 8 domain names / websites.

Does that mean i need to install the certificate onto the shared IP address of 175.107.185.10?

With the user nobody?