-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>Hi Guy's
>>Is it possible to setup more than one Domain name on a sigle IP
>address. As far as i know it is by using Non-IP Virtual Host.
>Well i'll try to explain what i need. I have a IP address. 193.X.X.X
>and i have a registered domain name. www.Mydomain.com to that IP
>address. What i want is to be able to setup my IP address(193.X.X.X)
>as my primary domain name and www.Mydomain.com as my second. So when
>you type in www.Mydomain.com you get one web site and when you type
>in my IP address you get my main site.
>Yep it sure is.
the dns should look like this (I think)
host IN A 193.X.X.X
www.mydomain IN CNAME 193.X.X.X
Here's how's mine are set up.
NameVirtualHost 192.X.X.X
<VirtualHost 192.X.X.X>DocumentRoot /path/to/web/page/htmlServerName
www.mydomain.com
ServerAdmin amk at broadcom.ieScriptAlias /cgi-bin/
/path/to/cgi-bin/ErrorLog /www/logs/error.log
TransferLog /www/logs/access.log
</VirtualHost>
And that's in the srm.con although you can put that in the httpd.conf
if you want.
What I think may be causing the problem is this.
You have named you 193.X.X.X as a virtual host when ther is no need.
Open up your httpd.conf and find the words "Document Root" (if it's a
redhat box then it will point to /home/httpd/html/)
Change that to where you want 193.X.X.X to go to and not where
MYDOMAIN.COM is pointing to.
Comment out this :(put a "#" in front of everything.)
>>#NameVirtualHost 193.X.X.X
>>#<VirtualHost 193.X.X.X>
>#ServerName 193.X.X.X
>#DocumentRoot /home/waynec/html
>#</VirtualHost>
That should be commented out
And this should look like:
NameVirtualHost 193.X.X.X
<VirtualHost 193.X.X.X>DocumentRoot /home/Mydomain.com
ServerName www.mydomain.com
ServerAdmin you at yourdomain.ieScriptAlias /cgi-bin/
/path/to/cgi-bin/ErrorLog /www/logs/error.log
TransferLog /www/logs/access.log
</VirtualHost>
Any problems and you can phone me or I could phone you.
Hope it works as i think that is what is causing the problem.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>
iQA/AwUBOI3DV6LZ0WY03a8vEQILyACeMLFx2Fc9V8ENru7Kg7jOsQnRT5YAn3YM
TFd8wDPU3WkjqGXI06tSW77M
=1zik
-----END PGP SIGNATURE-----
***********************************************************
AJ Mc Kee
"We all go down now and again"
http://dezel.dhs.org
PGPKey is at
http://www.broadcom.ie/websidestory/contact.phtml
***********************************************************
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!