1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

apache, mod_ssl, multiple domains

Discussion in 'Linux and Unix' started by DaijoubuKun, Apr 15, 2008.

Thread Status:
Not open for further replies.
  1. DaijoubuKun

    DaijoubuKun Thread Starter

    Joined:
    Oct 20, 2005
    Messages:
    75
    I've posted the following on several forums, however, they all say it can't be done. I know for a fact this is NOT true and it can be done, because it has been done. Plus I hope I"m posting this in the correct area, because it is on a Linux Server.

    I understand the fact that I can not have multiple SSL virtualhosts on the same IP and or port. I know the following can be done because hosting companies like 1&1 do this.

    I have an SSL cert built for domain1.com so it can be accessed by http or https without any problems. However, because of this domain2.com can only be accessed by http. If I attempt https it will show domain1.com. What I want to have happen is if someone types https://www.domain2.com, it forwards to https://www.domain1.com/domain2.com.

    I have setup a symlink so you can type https://www.domain1.com/domain2.com and it works, but how can I make this happen automatically with apache and not having to rewrite all my website's code?

    I'm running Slackware 12 (kernel 2.6.22.2)
    Apache 2.2.8 with mod_ssl
    php 5.2.5 (if that really matters)
    I don't see why anymore info would be needed here, but if it is I will reply.

    Hope this all makes sense. Thank you all in advance.
     
  2. tomdkat

    tomdkat Retired Trusted Advisor

    Joined:
    May 6, 2006
    Messages:
    7,148
    Could you use the Apache mod_rewrite module to redirect the URL as you want?

    Peace...
     
  3. DaijoubuKun

    DaijoubuKun Thread Starter

    Joined:
    Oct 20, 2005
    Messages:
    75
    No. It seems that the rewrite's and redirects only work with subdirectories. I've been unable to use them for domain redirects.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/704147

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice