Hi everyone,
I just setup a mandrake 9 machine to work as e-mail and webserver.. I now have my website running as www.mydomain.org and my webmail at www.mydomain.org/webmail/
I would like to create a virtual host to serve my webmail as http://mail.mydomain.org, I tried several options in my Vhost.conf file, below I will give you my most recent version. The problem is that I see the exact same content when typing mail.mydomain.org or www.mydomain.org. I hope one of you has a suggestion to resolve this issue.
Alex
################# Vhosts.conf
#This is where we store the VirtualHosts configuration.
(.......)
#This is needed for Frontpage support
Port 80
ServerRoot /etc/httpd
ResourceConfig /dev/null
AccessConfig /dev/null
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
#NameVirtualHost 111.222.33.44
#<VirtualHost 111.222.33.44>
#ServerName www.domain.tld
#ServerPath /domain
#DocumentRoot /web/domain
#</VirtualHost>
<VirtualHost *>
ServerName www.mydomain.org
ServerPath /var/www/html
DocumentRoot /var/www/html
</VirtualHost>
<VirtualHost *>
ServerName mail.mydomain.org
ServerPath /var/www/squirrelmail
DocumentRoot /var/www/squirrelmail
</VirtualHost>
I just setup a mandrake 9 machine to work as e-mail and webserver.. I now have my website running as www.mydomain.org and my webmail at www.mydomain.org/webmail/
I would like to create a virtual host to serve my webmail as http://mail.mydomain.org, I tried several options in my Vhost.conf file, below I will give you my most recent version. The problem is that I see the exact same content when typing mail.mydomain.org or www.mydomain.org. I hope one of you has a suggestion to resolve this issue.
Alex
################# Vhosts.conf
#This is where we store the VirtualHosts configuration.
(.......)
#This is needed for Frontpage support
Port 80
ServerRoot /etc/httpd
ResourceConfig /dev/null
AccessConfig /dev/null
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
#NameVirtualHost 111.222.33.44
#<VirtualHost 111.222.33.44>
#ServerName www.domain.tld
#ServerPath /domain
#DocumentRoot /web/domain
#</VirtualHost>
<VirtualHost *>
ServerName www.mydomain.org
ServerPath /var/www/html
DocumentRoot /var/www/html
</VirtualHost>
<VirtualHost *>
ServerName mail.mydomain.org
ServerPath /var/www/squirrelmail
DocumentRoot /var/www/squirrelmail
</VirtualHost>