Hello,
I wan't to run two sites on one server. I am using Moodle 2.4.1 with Centos 6.3 and apache as webserver. I have created a virtual host file, the file contains:
<VirtualHost *:80>
ServerAdmin elobeheerder@ictmbo.nl
DocumentRoot /var/www/html/mme
Directory /var/www/html/mme
ServerName mme.ictmbo.nl
ErrorLog logs/mme-error_log
CustomLog logs/mme-access_log common
</VirtualHost>
The other domain name is elo.ictmbo.nl. The elo.ictmbo.nl config is stored in httpd.conf.
But when I restart apache. apache accepts the configuration. but when I enter elo.ictmbo.nl moodle is nagging that only the following url is allowed mme.ictmbo.nl. or when elo.ictmbo.nl is accepted, but mme.ictmbo.nl is not accepted. This depends on in which direction the wind is blowing.
I don't know what is happening. but I have two folders where the www data is stored in. and I have a different mysql database for each website.
Does anyone knows what I am doing wrong, of have someone a better idea to hosts two or more Moodle sites? Thanks in advance!!!!