You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Blomstrom <da...@yahoo.com> on 2004/08/20 23:53:29 UTC

[users@httpd] Can't preview virtual host site locally

I have Apache installed on my computer, with virtual
hosts, so I can preview my sites at http://geobop/,
http://geozoo/, etc.

I just created a new site, which I SHOULD be able to
preview at http://wbrain/ - but that takes me to
http://www.everydaycompanion.com/played/WBRAIN.asp
instead.

It looks like I have Dreamweaver's testing server set
up the same as for all my other sites (which work),
and this is what I put in my conf file:

<VirtualHost 127.0.0.1>
ServerAdmin webmaster@wbrain
DocumentRoot "c:/sites/wbrain"
ServerName wbrain
ServerAlias *.wbrain
ErrorLog logs/wbrain-error.log
ScriptAlias /cgi-bin/ "c:/sites/wbrain/cgi-bin/"
<Directory "c:/sites/wbrain">
Options All Includes Indexes
</Directory>
</VirtualHost>

However, it's been a while since I set up a virtual
host, and it occurred to me that I may simply be
omitting a step in the process. Can anyone see what
I'm doing wrong?

Thanks.


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Can't preview virtual host site locally

Posted by David Blomstrom <da...@yahoo.com>.
--- Rich Bowen <rb...@rcbowen.com> wrote:

> > It looks like I have Dreamweaver's testing server
> set
> > up the same as for all my other sites (which
> work),
> > and this is what I put in my conf file:
> > 
> > <VirtualHost 127.0.0.1>
> > ServerAdmin webmaster@wbrain
> > DocumentRoot "c:/sites/wbrain"
> > ServerName wbrain
> > ServerAlias *.wbrain
> > ErrorLog logs/wbrain-error.log
> > ScriptAlias /cgi-bin/ "c:/sites/wbrain/cgi-bin/"
> > <Directory "c:/sites/wbrain">
> > Options All Includes Indexes
> > </Directory>
> > </VirtualHost>
> > 
> > However, it's been a while since I set up a
> virtual
> > host, and it occurred to me that I may simply be
> > omitting a step in the process. Can anyone see
> what
> > I'm doing wrong?
> 
> You're probably missing DNS resolution of that name
> to an IP address. In
> your case, given your description, I expect that you
> need to put an
> entry in your host file to map the name to your
> local address.

You're absolutely right; thanks!


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Can't preview virtual host site locally

Posted by Rich Bowen <rb...@rcbowen.com>.
On Fri, 20 Aug 2004, David Blomstrom wrote:

> I have Apache installed on my computer, with virtual
> hosts, so I can preview my sites at http://geobop/,
> http://geozoo/, etc.
> 
> I just created a new site, which I SHOULD be able to
> preview at http://wbrain/ - but that takes me to
> http://www.everydaycompanion.com/played/WBRAIN.asp
> instead.

This looks like it might be some kind of auto-search feature of whatever
browser you're using for sites that don't resolve to anything useful in
DNS.

> It looks like I have Dreamweaver's testing server set
> up the same as for all my other sites (which work),
> and this is what I put in my conf file:
> 
> <VirtualHost 127.0.0.1>
> ServerAdmin webmaster@wbrain
> DocumentRoot "c:/sites/wbrain"
> ServerName wbrain
> ServerAlias *.wbrain
> ErrorLog logs/wbrain-error.log
> ScriptAlias /cgi-bin/ "c:/sites/wbrain/cgi-bin/"
> <Directory "c:/sites/wbrain">
> Options All Includes Indexes
> </Directory>
> </VirtualHost>
> 
> However, it's been a while since I set up a virtual
> host, and it occurred to me that I may simply be
> omitting a step in the process. Can anyone see what
> I'm doing wrong?

You're probably missing DNS resolution of that name to an IP address. In
your case, given your description, I expect that you need to put an
entry in your host file to map the name to your local address.

-- 
Alice came to a fork in the road and saw a Cheshire cat in a tree.
"Which Road do I take?" she asked. "Where do you want to go?" was his 
response.  "I don't know," Alice answered. "Then," said the cat, "it
doesn't matter."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Can't preview virtual host site locally

Posted by David Blomstrom <da...@yahoo.com>.
Please disregard this thread; I just discovered the
problem. Thanks.


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org