here the scenario:
I have example.com
<VirtualHost *:80>
Redirect Permanent "/" "https://example.com"
</VirtualHost>
the above works perfectly(it redirects to the configuration of <VirtualHost *:443>...</VirtualHost>
),
now I'm trying to add another virtual host dev.example.co.uk
to this server so it serves both websites on port 80
<VirtualHost *:80>
ProxyPreserveHost On
ServerName dev.example.co.uk
Timeout 2400
ProxyTimeout 2400
ProxyBadHeader Ignore
SetEnv proxy-initial-not-pooled
SetEnv proxy-nokeepalive 1
ProxyPass / http://127.0.0.1:8888/ retry=1 acquire=3000 timeout=600 Keepalive=On
ProxyPassReverse / http://127.0.0.1:8888/
</VirtualHost>
for some reason whenever I type dev.example.co.uk
in a browser, it redirects to example.com
which eventually redirects to https://example.com
I'm guessing it still picking up the first configuration.
basically what I really want is when I type dev.example.co.uk
it picks the configuration of its own virtual host and not the first one.
what am I doing wrong here?