Forum Moderators: phranque
I have everything setup for local mode. It's worked good for years.
->windows hosts file has 50-100 name->fake localhost ips (127.0.0.x)
->apache server adr is set as localhost
->virtual hosts match ips in windows hosts file.
It all works solid from a local stand point. Now comes the fun part of working in a Dynamic ip address. I've messed with it from scratch for almost a day and can't get it to work. Must be something I'm not understanding.
Can anyone doing this, send me their conf file?
<added>
k, here's my vhost config (just the very necessary part):
NameVirtualHost *<VirtualHost *:81>
ServerName localhost
</VirtualHost><VirtualHost *:82>
ServerName localhost
</VirtualHost>
both point to the same site, just the ports used to access it differ
I want this:
<VirtualHost *:80>
ServerName localhost
</VirtualHost>
Into this:
<VirtualHost *:80>
ServerName fred-bettys.com
</VirtualHost>
<VirtualHost *:80>
ServerName pebbles-bambam.com
</VirtualHost>
How did you have your hosts file set in windows?
the only thing i could think of is to set
127.0.0.1 fred-bettys.com
127.0.0.1 pebbles-bambam.com
but i'm pretty sure that's what you tried first :(
where exactly does the problem occur?
is it a dns problem for sure or maybe port settings?
i'd like to take a closer look at my .conf files
but i'm already late now
here [psychotekk.de ] is a txt file,
just add the language definitions to ultraedit's wordfile.txt
(makes work much easier, in case you use ultraedit though.. but it's not complete yet)
127.0.0.2 webmasterworld.com
127.0.0.3 www.webmasterworld.com
127.0.0.4 www.searchengineworld.com
etc.
Then I copy in out that hosts file with another one. I call them local vs net. In local mode, I get 100% pure local behavior/emulation of online sites (like the board here) when I want. Instead of the above, I should have been doing:
127.0.0.3 webmasterworld.com
127.0.0.3 www.webmasterworld.com
All the time.