07/09/2005, 20h05
|
#2
|
|
|
Re: Can't set vhosts on Apache!
sd7785 wrote:
> Hi! I'm new.
> I want to test some MySQL dbases on my local machine.
> I've installed and removed, and installed and removed the Apache server
> (vers.2.0.47) over, and over, and over, and over... again, and tried
> dozens of possible combinations of installation options, and httpd.conf
> settings and directives in order to have the server responding to at
> least one and only one other address then the default one.
> I've followed the instructions in the included documentation
> (http://localhost/manual/) as comfirmed in the on-line documentation
> (http://httpd.apache.org/docs-2.0/vhosts/) as well.
>
> All I want is a just a mere, simple, humble address like
> "www.example.com". One! At least one and only one! In fact, I don't
> even want any more, any longer vhosts! None at all! I just want the
> default host to be a "www.example.com"-like address.
>
> Whatever I do, however I set it, it shows up the starting page only for
> http://localhost, or http://s0.mshome.net.
>
> It's amazing!!! I'm checking up the vhost settings on the console,
> "apache.exe -S", it says no warning, no error, "syntax OK", "default
> server www.example.com", and then I type in the browser the same
> address, -it isn't OK anymore, anylonger..., it says nothing!
>
> What do I miss, which directive do I overlook, since it happens this
> way...???!
You missed the fact that you need to add a DNS entry so that your browser can
resolve www.example.com to an IP address. How you do that depends on your OS,
and whether you have a DNS server on your LAN or not. It has nothing to do with
Apache.
> Thanks!
--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
|
|
|
|