Jump to content


Photo

Primary domain document root vs add-on domains


  • Please log in to reply
6 replies to this topic

#1 esn024

esn024

    Rank I Member

  • Members
  • Pip
  • 16 posts
  • Gender:Male

Posted 08 January 2021 - 12:14 AM

cpanel shows my primary domain as thebrooksreflections.heliohost.org

I have been hosting thebrooksreflections.com and had this domain set up as an alias in cpanel.

This worked fine.

 

I am now trying to add a second website, animatsiya.net

I used the addon domains feature, which automatically creates any new document root folder in public_html, this makes it accessible from my original domain. I'd like to avoid this, as they are separate websites.

 

To fix this, I removed thebrooksreflections.com as an alias and added it as an addon domain

thebrooksreflections.com should now be pointing to public_html/thebrooksreflections

and animatsiya.net should be pointing to public_html/animatsiya

but thebrooksreflections.com is still accessing public_html as its root

What am I doing wrong?



#2 wolstech

wolstech

    Rank X Member

  • Root Admin
  • 13,222 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 08 January 2021 - 12:23 AM

Changes can take several hours to take effect (Apache needs to restart).

Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...


#3 esn024

esn024

    Rank I Member

  • Members
  • Pip
  • 16 posts
  • Gender:Male

Posted 08 January 2021 - 01:10 AM

Something has changed, but it's still not right - thebrooksreflections.com is now pointing to a page that says  "Ricky Server    Powered by HelioHost"
 

 



#4 wolstech

wolstech

    Rank X Member

  • Root Admin
  • 13,222 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 08 January 2021 - 01:30 AM

The weird page is because you're forcing SSL on a domain that doesn't have a certificate installed. When you do that, the server will serve the content of a random domain that has SSL installed (typically it'll be a random user's website, your domain just got lucky and the user's website looks like it could be from us). It fixes itself once AutoSSL runs and a certificate gets set up.

 

I just manually ran AutoSSL for you so you can skip the 24 hour wait. Give it another few hours for the certs to install and Apache to restart again and it will work properly. You may need to clear your cache once its working in order to see it.

8:28:15 PM This system has AutoSSL set to use “cPanel (powered by Comodo)”.
 8:28:15 PM Checking websites for “esn024” …
 8:28:17 PM The website “thebrooksreflections.thebrooksreflections.heliohost.org”, owned by “esn024”, has no SSL certificate. AutoSSL will attempt to obtain a new certificate and install it.
 8:28:19 PM The system will attempt to renew SSL certificates for the following websites:
 8:28:19 PM thebrooksreflections.thebrooksreflections.heliohost.org (thebrooksreflections.com www.thebrooksreflections.com mail.thebrooksreflections.com webmail.thebrooksreflections.com cpanel.thebrooksreflections.com webdisk.thebrooksreflections.com thebrooksreflections.thebrooksreflections.heliohost.org www.thebrooksreflections.thebrooksreflections.heliohost.org)
 8:28:42 PM The system has completed the AutoSSL check for “esn024”.

Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...


#5 esn024

esn024

    Rank I Member

  • Members
  • Pip
  • 16 posts
  • Gender:Male

Posted 08 January 2021 - 02:22 AM

Thank you wolstech. What very odd behaviour, serving a random page... I can see it is working properly again now.



#6 wolstech

wolstech

    Rank X Member

  • Root Admin
  • 13,222 posts
  • Gender:Male
  • Location:Pennsylvania

Posted 08 January 2021 - 10:41 AM

It is indeed a weird behavior. In the past we've tried setting up a specific page that's supposed to be shown for this, but it has never really proved reliable due to how cpanel works...

Please do not PM me for support. Posting on our forums lets all of us learn.
Do you play Minecraft? | Server Monitors | And the Dumbass of the Decade award goes to...


#7 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 21,658 posts
  • Gender:Male

Posted 13 January 2021 - 09:58 PM

The default ssl page works on Johnny and Tommy, but Ricky broke and there are literally too many accounts on the server to change the default ssl page anymore. When I try to change the default it errors out because the account list is simply too long for the server to be able to handle it. We were scheduled to rebuild Ricky last February or March 2020, but due to covid we had to delay those plans because it wasn't safe for our staff to travel to the datacenter to do the required Ricky upgrade. We finally got that in person maintenance done a few days ago which gives us the ability to do the long overdue Ricky rebuild. It should hopefully be complete in the next few months, and it will fix many things such as the default ssl page.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users