homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Apache Dynamic IP Virtual Hosting on Windows?

 6:14 pm on Jul 5, 2002 (gmt 0)

Anyone doing virtual hosting under windows on a dynamic ip?

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?



 6:22 pm on Jul 5, 2002 (gmt 0)

i have my apache installed on my win2k machine, localhost:81
and once had a dns2go account...
you get your dynamic ip allocated by your isp right?
so what exactly is the problem now or did i miss something here?

k, here's my vhost config (just the very necessary part):

NameVirtualHost *

<VirtualHost *:81>
ServerName localhost

<VirtualHost *:82>
ServerName localhost

both point to the same site, just the ports used to access it differ


 6:37 pm on Jul 5, 2002 (gmt 0)

That's just what I'm doing with dns too via dyndns.org. I've had it for years where clients could grab their reports in a fairly secure environment and via a domain name.

I want this:

<VirtualHost *:80>
ServerName localhost

Into this:

<VirtualHost *:80>
ServerName fred-bettys.com

<VirtualHost *:80>
ServerName pebbles-bambam.com

How did you have your hosts file set in windows?


 7:42 pm on Jul 5, 2002 (gmt 0) localhost
was the only uncommented line
(i have several more now but not related to my apache)

the only thing i could think of is to set fred-bettys.com 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)


 8:26 pm on Jul 5, 2002 (gmt 0)

Thanks. I got it figured out. I was trying to be to tricky. My hosts file looks something like: webmasterworld.com www.webmasterworld.com www.searchengineworld.com

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: webmasterworld.com www.webmasterworld.com

All the time.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved