SSL & Redirect problem

  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 26th, 2009, 6:12 am

I have 2 sites on one server qa .domainname.com & www .domainname.com

www - is intended to be the production version of the site
qa - is intended to be the test version of the site

www - has a legit purchased SSL cert running on port 443
qa - has a self signed SSL cert running on port 444

when I try to navigate to any https pages on qa I get redirected to the www equivalent...which is not what I want...I want to land on the qa page not the www page

any thoughts?
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 26th, 2009, 6:12 am

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 26th, 2009, 6:42 am

Have you set up any other subdomains prior to this one? Did they work as intended or redirect?
I'd love to change the world, but they won't give me the source code.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 26th, 2009, 6:45 am

the subdomain works fine. all of the non https pages navigate appropriately

if I navigate to http://qa.domainname.com/pagename.asp I get the appropriate page

BUT

if I navigate to https://qa.domainname.com/pagename.asp I end up getting the www version of pagename.asp
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 26th, 2009, 7:25 am

Are you on your own server or thru a hosting service? I ask b/c your .htaccess could be doing the redirect? I haven't seen this before, so just throwing out ideas.
I'd love to change the world, but they won't give me the source code.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 26th, 2009, 7:38 am

my own server using IIS
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 26th, 2009, 7:45 am

Not sure on this one. I'm not much of a server config kind of guy. Best I can do until someone with some know-how comes along is refer you to something like this article. They seem to have two working off the same port. Perhaps there's something in there that could help.
I'd love to change the world, but they won't give me the source code.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 26th, 2009, 9:33 am

UPSGuy I think your solution of using a wildcard cert could work

BUT...

That's not an option. I need to get the self signed cert I created to work for the test site along side the godaddy cert we have for the production site.

UPSGuy thanks for your help!
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 26th, 2009, 10:11 am

Ah, well, was worth a shot. You're welcome. Hopefully someone with the correct answer will come in shortly.
I'd love to change the world, but they won't give me the source code.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 26th, 2009, 1:08 pm

anyone know how to get the self-signed cert and the godaddy cert to coexist on the same server?
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 26th, 2009, 1:59 pm

Can you have two separate SSL certs on the same IP address if they are using different ports?

my www site and my qa site both operate on the same IP address

I read a post saying that you cannot. If that's the case then that might explain things...

Really not sure. Anyone know the deal?
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Joined: Feb 20, 2004
  • Posts: 524
  • Loc: NC, USA
  • Status: Offline

Post June 28th, 2009, 11:45 am

This post answered my question http://forums.iis.net/t/1147147.aspx

It says that you CAN "technically" have multiple SSL certs on the same IP address. Using the information I've already provided here's how it would work:

https://www.domainname.com/pagename.asp
This path will use the cert assigned to the default port 443

https://qa.domainname.com:444/pagename.asp
This path will use the cert assigned to port 444

Therefore, it is possible, but this isn't my desired outcome. So, I'm going to have to research setting up my QA sub-domain using a different IP address than the WWW.

Hope this helps someone else down the road. UPSGuy thanks again for your help!
Image
Give a man a fish he eats for a day. Teach a man to fish he eats for a lifetime.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 28th, 2009, 12:15 pm

Sure thing, sorry we couldn't come up with it for ya. Maybe on the next one. :)
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 180 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.