0

So I have two sites on one plesk server set out as below:

/var/www/vhosts/site1.co.uk

and

/var/www/vhosts/site2.co.uk

The problem is both www.site1.co.uk and www.site2.co.uk are both going to /var/www/vhosts/site1.co.uk.

This is illustrated below: enter image description here

The http conf file for site1 is: http://laravel.io/bin/6mr7E

The http conf files for site2 is http://laravel.io/bin/XLKBO

Can anyone see a solution.

closed as off-topic by HopelessN00b Feb 25 '15 at 8:35

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

4

None of your vhosts contain any reference (ServerAlias) to www. for any of the domains so when you access any site with www in front, it will go to the default vhost in Apache (which is the first one that it finds when parsing the configuration for that IP:PORT).

Go to Plesk and somewhere in the hosting setup for each domain you should have a tickbox to allow the domain to be browsable with www. as well. If not, just add the www.domain as an alias, but that's just a hackish solution.

Not the answer you're looking for? Browse other questions tagged or ask your own question.