Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Shared SSL and Subdomain

Shared SSL and Subdomain

Locked

Views: 1,879

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Nov 2008, 7:36 PM
#1
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Shared SSL and Subdomain

We normally set up our sites like:
https://www.customer.com
and shared ssl would be https://secure.ourmainsite.net/~customer

But I have a site more like this:
zencart.customer.com
and I thought the shared ssl would be
https://secure.ourmainsite.net/~customer/zencart/

That URL accesses to correct files, but the CSS is missing so it's a white page with black text and default blue links and broken images.

I noticed the images are trying to pull from https://zencart.customer.com

Does anyone know how I can work around this problem?

12 Nov 2008, 3:47 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Shared SSL and Subdomain

and I thought the shared ssl would be
https://secure.ourmainsite.net/~customer/zencart/
That should be a correct URL.

I noticed the images are trying to pull from https://zencart.customer.com
That would be from either or both, of your 'config' files. Check both to make sure the SSL line for the site uses:

https://secure.ourmainsite.net/~customer/zencart/

12 Nov 2008, 4:41 AM
#3
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Shared SSL and Subdomain

I have seen this before.

It is usually because you are on a shared server and the box you are on is overloaded with others using a shared SSL. Sometimes all the documents do not load, particularly the css.

Bottom line, get a dedicated IP and your own SSL. That will solve it.

12 Nov 2008, 5:40 PM
#4
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: Shared SSL and Subdomain

bobdog:

I have seen this before.

...Bottom line, get a dedicated IP and your own SSL. That will solve it.

I work for a company that has a dedicated server, but we host multiple accounts on it. We host several zencarts with the shared SSL, and never have a problem with it. This one is different because I am trying to use a subdomain. I think the problem is getting zencart request the css and images from the correct directories.

I'll post a solution if I find one, because someone else might need it.

12 Nov 2008, 5:51 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Shared SSL and Subdomain

There are two ways of setting up subdomains.

One way is to set it up as if it were a full domain and it would have the address: http://zencart.customer.com and this would require its own full ssl certificate.

The other way is to set it up as a pure Sub Domain which answers to the address http://zencart.customer.com but the files for it are in the customer.com/zencart folder. Or, if your site files are normally in the /var/www/html/ folder, the sub-domain files would be in the /var/www/zencart/ folder. Your Shared SSL would work for the pure Sub Domain method.

Vger

12 Nov 2008, 7:53 PM
#6
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: Shared SSL and Subdomain

TecBrat:

I'll post a solution if I find one, because someone else might need it.

Thanks for the suggestions.

assuming zencart.customer.com is actually customer.com/zencart and https://secure.ourmainsite.net/~customer is the ssl of customer.com:

What I had to do was set the HTTPS_SERVER to https://secure.ourmainsite.net/~customer

and
DIR_WS_HTTPS_CATALOG to
/zencart/

and simlar in both configuration files.