Setting Virtual Host(s) on Apache can't be done!
Posted: Fri Sep 02, 2005 6:53 am
I’ve tried a lot to set up and use ‘Virtual Host’ on my Apache Server (Ms-Win) based on Localhost. but can’t solve my problem with that.
What I could do was just set IP-Based virtual hosts and can’t play with Name-Based ones - on local host-. any doable idea? Or even particular tutorial? I can’t find out what’s wrong with that!
Here is the code witch I use in my httpd.conf file for virtual hosts (It works):
---
But what's wrong with this one? (something.com is not available!)
Is there something to set about DNS settings on windows?
Any idea will appreciate...

What I could do was just set IP-Based virtual hosts and can’t play with Name-Based ones - on local host-. any doable idea? Or even particular tutorial? I can’t find out what’s wrong with that!
Here is the code witch I use in my httpd.conf file for virtual hosts (It works):
Code: Select all
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin local@local
DocumentRoot "c:/apachefriends/xampp/htdocs/"
ServerName this-parameter-isnot-working
</VirtualHost>But what's wrong with this one? (something.com is not available!)
Code: Select all
NameVirtualHost something.com:80
<VirtualHost something.com:80>
ServerAdmin local@local
DocumentRoot "c:/apachefriends/xampp/htdocs/"
ServerName this-parameter-isnot-working
</VirtualHost>Any idea will appreciate...