Here's my latest development...
Trying to cover all my bases with this in my hosts file:
::1 localhost
127.0.0.1 localhost
127.0.0.1 FOO
127.0.0.1 FOO.com
127.0.0.1 www.FOO.com
127.0.0.1 google.com
127.0.0.1 www.google.com
This is my real unregistered website name. I can't register it until the end of the month when I get some money.
Here's my new settings in my httpd-vhosts.conf file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@FOO.com
ServerName FOO
ServerAlias www.FOO.com
ServerAlias FOO.com
DocumentRoot C:/Windows/HOST/wamp/www/FOO
ErrorLog "logs/error.log"
CustomLog "logs/access.log" common
</VirtualHost>
*********************
I'm thinking it's my hosts.conf file so I've been checking it. Here's a ping check:
C:\Windows\system32>ping FOO
Pinging FOO.Home [184.106.31.186] with 32 bytes of data:
Reply from 184.106.31.186: bytes=32 time=27ms TTL=240
Reply from 184.106.31.186: bytes=32 time=37ms TTL=240
Reply from 184.106.31.186: bytes=32 time=29ms TTL=240
Reply from 184.106.31.186: bytes=32 time=25ms TTL=240
Ping statistics for 184.106.31.186:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 25ms, Maximum = 37ms, Average = 29ms
***************
You can see I have www.google.com in my hosts file but I can still go to Google in my browser. So I think it's something to do with the host file.
Quote:
| Yes: 192.168.254.2 = your computer and localhost = your computer. They're both the same place. |
Yeah but my IP 192.168.254.2 is suppose to be the same as localhost but I get two different pages. And that is what I want.
Quote:
| I don't. I almost get a directory listing of / (but I don't because that's been disallowed so I get a 403 instead). |
Does this mean I need to set my folder to a more unrestricted settings. I'll do that and see.
Quote:
| It depends. "mysite" has to be resolved to some IP address, and apparently your ISP has things set up so that trying to go someplace that doesn't exist sends you to their search page. Normally your browser would tell you that it can't find "mysite". |
I've been following these tutorials:
JLBN - Virtual Hosts on WAMP
http://guides.jlbn.net/setvh/setvh5.html
and this YouTube:
Setting up Virtual Hosts on Wampserver Part 1 of 2
http://www.youtube.com/watch?v=_IjEtqpD23I
They both say I should be able to go to my home page by typing http://FOO in the browser address bar.
I follow it EXACTLY too.
Thanks