Prevent other domains from listening on https

Discussion in 'Apache' started by posterpigeon, Oct 25, 2011.

  1. #1
    I have a VPS running around 10 Websites. one of the domains accepts payments (lets call it websiteA.com), and as such has an ssl certificate. Its set up using virtual hosts. The problem I now have is that when I type in
    <https://domain name of any other website on the server>
    It comes up with websiteA's content, but with (for example) websiteb's URL e.g. https://www.websiteb.com

    How can i configure apache so that either:
    1) anything thats not https://www.websitea.com redirects to https://www.websitea.com
    2) OR (preferably) Apache ignores any SECURE requests to anything but www.websitea.com?

    All the documentation seems to reccommend setting up virtual hosts for ssl, but I cant help feeling this is the problem.
    Anyone have any advice?

    Thanks in advance
    Dylan
     
    posterpigeon, Oct 25, 2011 IP