Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a website secured by a standard SSL certificate, securing a few different shops under different subdirectories. Ex. domain.com/shop1/ The shops are also accessible via a subdomain e.g. shop1.domain.com.

What I'm trying to accomplish: display shop1.domain.com to the user, while keeping all of the actual server calls as domain.com/shop1, so that the secure pages will continue to work properly. (Not sure if I'm using the proper language, exactly, I hope my point is clear.)

To be clear: my SSL is working fine, and I don't need help with that, and I don't need or want to purchase a UCC cert.

It can't be that difficult for anyone with experience with Apache. (I've spent 3 hours trying to learn about mod_rewrite. It's just not clicking.) I'm on a GoDaddy secure shared server, so please keep in mind that I'm not able to reset the server or anything.

share|improve this question

1 Answer 1

You do in fact need to purchase a more flexible SSL certificate for this to work.

The domain name that a user's browser validates the certificate against is the one that is "displayed to the user" - if their address bar says "shop.domain.com", then the certificate must cover that domain.

share|improve this answer
    
Ah, well bugger. Can I do a simple redirect from, for example, shop1.domain.com to domain.com/shop1 that will work whether or not SSL is invoked by a particular page? –  Jeff H. Sep 9 '12 at 1:21
    
I'd 'Vote Up' your answer, but apparently I don't have the reputation to do so. –  Jeff H. Sep 9 '12 at 1:22
    
You can redirect from the HTTP version of the subdomain, but users would get a browser warning from the subdomain before the redirect kicks in if they visit https://subdomain.domain.com. You can't upvote yet, but you should be able to mark the answer as "accepted" which awards rep by clicking the gray check mark under the voting buttons. –  Shane Madden Sep 10 '12 at 6:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.