HostGator.com » Support Portal



How to set up and use your shared SSL


Dedicated Server and VPS

You must install your own SSL and enable sharing under WHM >> SSL/TLS >> Manage SSL Hosts. This can be found in our video tutorial about Managing SSL Certificates (near the end).

Shared and Reseller

All HostGator shared & reseller servers have a shared SSL certificate pre-installed for your use. To access your website using the shared certificate, you will need to know your server's secure name and your cPanel user name.

In order to determine the secure server name, you will need to first locate the server name, which is different.

Ways to locate the server name:

  1. The server name is provided in the "Welcome Email" which we send upon account signup.
  2. You can also locate the server name in cPanel, in the left column near the bottom.
  3. Alternatively, you can run a traceroute test on your domain, which sometimes indicates the server name.

How to locate the cPanel user name:

  • Shared: The user name for cPanel is provided in the "Welcome Email" which we send upon account signup.
  • Reseller: Your user name for cPanel is provided in the "Welcome Email" which we send upon account signup. Your client account user names are located in WHM under List Accounts.

How to determine the secure server name:

  • Shared: Substitute "secure" where it says "gator" in the server name.  For example, if you server name is gator123.hostgator.com then the secure server name would be secure123.hostgator.com instead.
  • Reseller: Please contact HostGator support to determine the correct secure URL.

You are now ready to compose the secure name for your site.

To successfully utilize shared SSL, please use this format:

https://secure###.name.com/~cpaneluser/

Shared Example: https://secure123.hostgator.com/~bill/
Reseller Example: https://secure123.websitewelcome.com/~bill/

These examples use "bill" as the cPanel username. Substitute the correct cPanel username for "bill" above.

Please Note: The shared SSL path requires the username as well as the ending forward-slash for it to work.

If you do not use the correct secure server name, a warning message will appear. Learn more in the related article: Why does the free shared SSL have browser warnings?

If you experience issues with the shared SSL working correctly, please contact us via phone or live chat support and we will be happy to assist you.


Ok, now how do I post secure content, like images?

If the page has already been designed, you should not need to do anything special. The content should load securely when using the https address (URL).

However, if your designer used incorrect coding, you may need to correct some of the HTML.

Media content (an image, movie, audio) needs to be referenced with a relative path. Example:

<img src="images/banner.jpg">

The number one cause of insecure content on a page is due to referencing media with an absolute path. Example:

<img src="http://domain.com/images/banner.jpg">

This absolute path uses http and not https, which is the crux of the problem (https must be used).

By using a relative path, part of the image location is left to be assumed. A web browser will use the actual URL of the web page.

So, if you use a relative path and the page is http://domain.com/page.html, then the image is assumed to be at http://domain.com/images/banner.jpg.

Similarly, if use a relative path and the page is https://secure1.hostgator.com/~john23/page.html, then the image is assumed to be at https://secure1.hostgator.com/~john23/images/banner.jpg.

One final warning! When creating a relative link or path, be careful about adding an initial forward slash. Example:

<img src="/images/banner.jpg">

This example tells the browser to assume the domain part of the URL only. If your page is https://secure1.hostgator.com/~john23/page.html, then the image is assumed to be at https://secure1.hostgator.com/images/banner.jpg which is incorrect and will result in the image not displaying (404 error).


cPanelcPanel is a popular web hosting control panel that helps you manage your hosting account and assists you in creating web sites, managing e-mail addresses, & installing applications to a server.

cPanel is available on all HostGator Linux hosting plans, including Shared Hosting, Reseller Hosting, VPS and Linux Dedicated Servers.

Article Comments

belg4mit
This works for static content and some CMS, but any idea how to get it to work with Wordpress?

HostGator
This will work for WordPress as well, but you do need to perform the extra steps in the related article "WordPress Home Fix".

HostGator
This will work for WordPress as I described, but you do need to perform the extra steps in the related article "WordPress Home Fix".

emeka nd
SSL has been a concerned for me before I signed up for shared HostGator hosting. I thought I would have the SSL path as: https://mydomain.com/pay/
All the same, the only fear I have is how will such url as "https://ns2019.hostgator.com/~clone/pay" convince my clients that they are still on same site page? Wouldn't this raise some doubt on security?

HostGator
Shared SSL is great for people who know and trust you, but if you are expecting unknown visitors to trust your SSL then you should strongly consider private SSL.

Private SSL uses your domain name and will not raise any suspicions.

Lisa
I'm not understanding the free reseller example. I need some more basics. Maybe a little more background is necessary.
I have a hypothetical client on my HG reseller account. His username is Fred. Fred wants to put up a form that collects personal information, so he wants SSL. His form page is named HappyJoe.com/personal.html. My hypothetical reseller account is called RainbowGirl.com and my username is Lisa. Is he entitled to the free Shared or free HostGator Reseller SSL?

What will that cpanel username look like?

Can each of my clients get free SSL with the HG in this same manner?

Second, can you direct me to a tutorial that explains how/if I work all this into the HTML code? I don't understand the basics: Do I need to change http to https for every page of his site or just the form page?

HostGator
You and all your clients can use the shared SSL certificate.

His page would be https://server-ip-or-name/~Fred/personal.html

Your page would be https://server-ip-or-name/~Lisa/

This is presuming the domains are not addon domains. If they are, then the path must include the addon folder name.

Second, you do not change anything in the page's code. Rather, you need to update any links which point to the page.

Let's use Fred for this example. He needs to update any links which point to "personal.html" or "http://HappyJoe.com/personal.html" so they point to "https://server-ip-or-name/~Fred/personal.html".

Alexander
For Wordpress, use the plugin https:


That said, here is what I did to get my HostGator secure url to work with the WordPress HTTPS plugin:

1) Login to your HostGator cpanel

2) Look in the left column for your Server Name (you'll find this towards the bottom - just above the Name Servers section under Account Information). It should be something like: gator1223

3) Copy and paste this Server Name into a text file and replace the "gator" part with the word "secure"... So mine from above would change from gator1223 to secure1223.

4) Create your secure url:

a- If you're using your main domain name on this hostgator account, your secure url will look something like this:

secure1223.hostgator.com/~CHANGEME

*change "secure1223" to whatever your result of step 3 above was.
*Change "CHANGEME" to whatever your cpanel hosting username is

IMPORTANT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

b - If you're using an add-on domain, you'll need to add your add-on domain after the ~CHANGEME part. So in my case, if I were using the add-on domain "JaredLovesMullets.com" my secure url would look like this:

secure1223.hostgator.com/~CHANGEME/jaredlovesmullets.com

*notice there's a slash after CHANGEME and before my add-on domain

5) Once you have your secure url all set, go into your wp-admin and enter it into the WordPress HTTPS settings page in the SSL Host field at the top of the page.

*Please note that if you are using a static ip address on your HostGator account this method will not work as your account won't have access to the shared server.

*If following the steps above doesn't work for you, I highly recommend that you save yourself some time and frustration and just set up your free CMM hosting account if for nothing else than to be used for your custom welcome pages.

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment