Sorry about the retardedness above. Thanks for any help though.
I currently have Mandriva 10 Powerpack + on my system, and I am trying to set up a virtual host that will allow for three different domain names (
www.mydomain.com,
www.mydomain.net,
www.mydomain.org) to work out of three different folders. I have previously had this working with sub domains ( sitea.mydomain.com, siteb.mydomain.com) but now when I try it with the three different domains, they all show which ever is listed first in the Vhosts.conf.
Code:
NameVirtualHost www.mydomain.com
<VirtualHost *>
DocumentRoot /var/www/html/mdcom
ServerName www.mydomain.com
ServerAlias www.mydomain.com
ServerAdmin spider@mydomain.com
ScriptAlias /cgi-bin/ /var/www/html/mdcom/cgi-bin/
ScriptAlias /cgi-all/ /var/www/cgi-bin/
ScriptAlias /cgi-shared/ /var/cgi-bin/shared/
</VirtualHost>
NameVirtualHost www.mydomain.net
<VirtualHost *>
DocumentRoot /var/www/html/mdnet
ServerName www.mydomain.net
ServerAlias www.mydomain.net
ServerAdmin spider@mydomain.net
ScriptAlias /cgi-bin/ /var/www/html/mdnet/cgi-bin/
ScriptAlias /cgi-all/ /var/www/cgi-bin/
ScriptAlias /cgi-shared/ /var/cgi-bin/shared/
</VirtualHost>
NameVirtualHost www.mydomain.org
<VirtualHost *>
DocumentRoot /var/www/html/mdorg
ServerName www.mydomain.org
ServerAlias www.mydomain.org
ServerAdmin spider@mydomain.org
ScriptAlias /cgi-bin/ /var/www/html/mdorg/cgi-bin/
ScriptAlias /cgi-all/ /var/www/cgi-bin/
ScriptAlias /cgi-shared/ /var/cgi-bin/shared/
</VirtualHost>
I have tried many variations of this from strictly copying the built in example, to samples I seen posted everywhere, to my own crazy versions. I have tried replacing the *'s with the domain name, nothing seems to work. I either get the default "everything's working" page or all three will show up as which ever is listed first.
All three domains are actually named exactly the same, however one ends in .com, another .net, and last .org... I am acutally using each of the three as different sites for different purposes.
Any help would be greatly appreciated. Please contact me back at
RandyBerg@nc.rr.com or
Randy.Berg@geeksquad.com