alanyoung1979
10-18-2000, 09:31 PM
Here is my httpd.conf file with the relevant part:
DocumentRoot /home/httpd/html/
#if I don't have this bit it won't serve any pages properly
NameVirtualHost 216.200.132.35
#the subdomain that I want to have work and is setup on a DNS and works.
<VirtualHost 216.200.132.35>
ServerName webmail.5150online.com
ServerAlias webmail.5150online.com
DocumentRoot /home/httpd/html/mail/
</VirtualHost>
#my main website.
<VirtualHost 216.200.132.35>
ServerName www.5150online.com (http://www.5150online.com)
ServerAlias www.5150online.com (http://www.5150online.com)
DocumentRoot /home/httpd/html/
</VirtualHost>
but I can't get it to display the .html files in the webiste for webmail, unless I give it the path www.5150online.com/mail (http://www.5150online.com/mail)
Im not to sure if the second Virtual host is redundant but the same thing ocures when it is not in the httpd.conf file. I have apache 1.3.12 on mandrake 7.1
DocumentRoot /home/httpd/html/
#if I don't have this bit it won't serve any pages properly
NameVirtualHost 216.200.132.35
#the subdomain that I want to have work and is setup on a DNS and works.
<VirtualHost 216.200.132.35>
ServerName webmail.5150online.com
ServerAlias webmail.5150online.com
DocumentRoot /home/httpd/html/mail/
</VirtualHost>
#my main website.
<VirtualHost 216.200.132.35>
ServerName www.5150online.com (http://www.5150online.com)
ServerAlias www.5150online.com (http://www.5150online.com)
DocumentRoot /home/httpd/html/
</VirtualHost>
but I can't get it to display the .html files in the webiste for webmail, unless I give it the path www.5150online.com/mail (http://www.5150online.com/mail)
Im not to sure if the second Virtual host is redundant but the same thing ocures when it is not in the httpd.conf file. I have apache 1.3.12 on mandrake 7.1