[sites-module]: Sites Module Returning Incorrect Site
Created 4 years ago by finnito

Hi! I am running anomaly/sites-module on my PyroCMS installation. My webserver is Apache 2.4 and I have two vhosts to catch all requests and fire them through to my Pyro installation. What is going wrong is that they are all returning the wrong site, which is very strange.

All three of these sites return the same site, which is very odd:

https://finnito.nz
https://hikes.finnito.nz
https://nzen.org.nz 

I have one vhost that looks like this 000-default.conf

<VirtualHost *:80>
        Protocols h2 http/1.1
        ServerName finnito.nz
        ServerAlias www.finnito.nz

        ServerAdmin my.email@gmail.com
        DocumentRoot /srv/pyrocms/public

        LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

and 000-default-ssl.conf:

<IfModule mod_ssl.c>
<VirtualHost *:443>
        Protocols h2 http/1.1
        ServerAdmin my.email@gmail.com
        ServerName finnito.nz
        ServerAlias www.finnito.nz
        DocumentRoot /srv/pyrocms/public
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        <IfModule mod_rewrite.c>
                Options +FollowSymlinks
                RewriteEngine On
        </IfModule>
        <IfModule mod_expires.c>
                <FilesMatch "\.(jpe?g|png|gif|js|css)$">
                      ExpiresActive On
                      ExpiresDefault "access plus 1 wee$
                </FilesMatch>
        </IfModule>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/finnito.nz/....
SSLCertificateKeyFile /etc/letsencrypt/live/finnito.nz/...
</VirtualHost>
</IfModule>

I'm using Cloudflare for my DNS and have SSL enabled on their end, as well as having a LetsEncrypt self-signed certificate on my server.

Any help would be most appreciated!