Jump to content

Virtual Domain redirect from http to https


Garion

Recommended Posts

Hi i was wondering if anyone could help me,

 

I am working on a server that has multiple virtual domains, one main one, others mostly for testing. I need to change one of the test sites so that it will go to its own https connection instead of going to the main one. For example

 

http://www.site.com (main site), after clicking checkout it goes to

https://www.site.com, now i have a test site

http://test.site.com, and i want it to go to

https://test.site.com but instead it goes to https://www.site.com

 

Obviously the links points to the right place, and I've created a test.site.com-ssl file in sites enabled, but it still goes to the wrong place.

 

Does anyone know of something else that i need to do or can try? I'm very new to this so i am sorry if i didn't explain the problem very well. Also if this problem was solved somewhere else, can someone just point me to that?

 

Link to comment
Share on other sites

  • 3 weeks later...
I am working on a server that has multiple virtual domains

 

Did you mean Apache Virtual Hosts (http://httpd.apache.org/docs/2.2/vhosts/) or DNS domain names?

 

If you meant DNS domain names you will have to edit you DNS records, either a CNAME or an A Record.

 

If you meant Apache Virtual Hosts, they will have to be IP-based do to the nature of SSL/TLS (https).

 

Hope this helps a bit.

 

Cheers!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.