Hi, I have a this problem and have been trying to fix without success, any help please. i want to access the directory moodle in /var/www/web1/web on my site like this> http://moodle.example.com , where http://www.example.com is my website. for that i have created a co-domain in ISPconfig like this > hostname : moodle Domain : example.com i have then added the following in the Apache Directives of ISPConfig : <VirtualHost 192.168.xxx.xxx> ServerName moodle.example.com ServerAlias www.moodle.example.com ServerAdmin [email protected] DocumentRoot /var/www/web1/web/moodle </VirtualHost> but when i try to access > http://moodle.example.com i have this error : Server not Found, Firefox can't find the server at : moodle.example.com what i'm missing here ? thanks in advance.
Why do you add a vhost in apache directives, this is not nescessary and not possible. Just remove it. You can not add a vhost within a vhost. If you want to redirect a subdomain to a directory, have a look here: http://www.howtoforge.com/forums/showthread.php?t=12783