Sorry. I have found a million threads that are about it, I read them all, I tried almost every configuration but it just-wont-work!
I have an apache server with redhat 9. A friend of mine asked me to host a page for him, and I said that that was possible. Now, he has registered his page (in this example page3456.com) with a registering service. It resolves to my IP (in this example xx.xx.xx.xx). I have put it in the html/page3456 directory.
My page (domain.com) is working fine. Driven to madness I have now tried to also make make my friends'page show in the page3456.domain.com url (that is also registered to resolve to my IP wich it does).
Now, whatever URL we put in any browser, all give my own page. Here is my httpd.conf - PLEASE, tell me what's wrong...
Code:
NameVirtualHost xx.xx.xx.xx
<VirtualHost domain.com>
ServerAdmin joe@domain.com
ServerName domain.com
DocumentRoot /var/www/html
ServerSignature email
DirectoryIndex index.php
</VirtualHost>
# Virtual host Virtual Host 1
<VirtualHost page2345.domain.com>
DocumentRoot /var/www/html/page2345
ServerAdmin joe@domain.com
ServerName page2345.domain.com
ServerSignature email
DirectoryIndex index.html
<Directory "/var/www/html/page2345">
AllowOverride all
Allow from from all
Deny from from all
Order Deny,Allow
</Directory>
</VirtualHost>
# Virtual host Virtual Host 2
<VirtualHost xx.xx.xx.xx>
DocumentRoot /var/www/html/page2345
ServerName page2345.com
ServerSignature email
<Directory "/var/www/html/page2345">
AllowOverride all
Allow from from all
Deny from from all
Order Deny,Allow
</Directory>
</VirtualHost>
The names have been changed to protect te noob...