I have an Apache server that will be serving up a few sites (all from the same IP address).
Site A must be accessible via HTTP and HTTPS.
Site B must only be accessible via HTTP - it cannot be accessed via https.
Site A works fine, but Site B is giving me trouble. When a user attempts to access
https://SiteB they get redirected to
The config for Site A looks like this:
# 001-SiteA.conf: <VirtualHost *:80> ServerName SiteA ServerAlias SiteA # ... </VirtualHost> # 001-SiteA-SSL.conf: <VirtualHost *:443> ServerName SiteA ServerAlias SiteA # ... </VirtualHost> # 002-SiteB.conf <VirtualHost *:80> ServerName SiteB ServerAlias SiteB # ... </VirtualHost>
What is preferred is that the user get a 404 error or an empty page or something - but definitely not the content of SiteA.
https://SiteB redirecting users to
https://SiteA and how can I stop that?