|
Posted by Jim Michaels on 11/18/94 11:43
You should have the line
127.0.0.1 localhost
in a file called hosts
in C:\WINDOWS\SYSTEM32\DRIVERS\ETC if you are on XP or in /etc if you are on
*NIX (if I remember correctly), in order for this to resolve correctly.
if you are on Windows and you make this change, you will need to execute
nbtstat -R
afterwards to reload the internal name cache so localhost is recognized.
You shouldn't have any troubles with Apache after that.
in fact, you can give other names to 127.0.0.1 for use with apache virtual
hosts.
127.0.0.1 localhost bob george www.mytestphpsite.com
but if you do this, you won't have access to the real www.mytestphpsite.com
on the internet because it maps to your local box.
this is where batch files and scripts come in handy for swapping
configurations (if need be).
<avenpace@gmail.com> wrote in message
news:1142846911.025234.33970@u72g2000cwu.googlegroups.com...
>
>> Have you checked if 'localhost' resolves?
> I'm not sure I get what you mean, I can ping localhost which point to
> 127.0.0.1 and can also use localhost if I login with mysql shell in
> console.
> Guess my apache is acting really wierd
>
Navigation:
[Reply to this message]
|