As I say, it just loads up site1 regardless of which domain I put in. If I swap them around so domain2 is the first virtual host then it shall load up that one only.
What am I doing wrong?
Thank you in advance!
11 Months Ago
Related Article:Apache2 Virtual Hosts on Ubuntu LAMP
is a solved Linux and Unix discussion thread by AHarrisGsy that has 1 reply, was last updated 11 months ago and has been tagged with the keywords: apache2, virtual, host, ubuntu, lamp.
Thank you for your time androtheos however I have come up with another solution to solve the problem.
123-Reg which I purchased the domain from change the headers so I don't think it would work anyway, instead I have created a PHP script which takes the HTTP referrer and redirects depending on that.