Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vhosts in local network

Status
Not open for further replies.

stasJohn

Programmer
May 6, 2004
155
US
Code:
NameVirtualHost *:80
#default
<VirtualHost *>
  DocumentRoot "C:/Apache/htdocs"
  ServerName localhost
</VirtualHost>

#web1
<virtualHost *>
  DocumentRoot "C:/web1/www"
  ServerName web1.localhost
</virtualHost>

Now, if I want someone within my local area network to view web1, how would they do that?

I figured something like [ip].web1 would work, but no.

Thanks in advance.
 
It would be "web1.localhost" in your case, but your user workstations have to be able to resolve it. It'd be easier in the long run to set up a more realistic DNS system, even if you just make up a domain name.
 
but your user workstations have to be able to resolve it.
How would they go about resolving it?

It'd be easier in the long run to set up a more realistic DNS system, even if you just make up a domain name.
How would I go about setting up a dns system (windowsxp,apache)? I'm a newbie. Be gentle.
 
1. Put it in c:\windows\system32\drivers\etc\hosts
2. Set up a DNS server. If you're only using your ISP's server, then never mind; it won't work. Windows XP doesn't include a DNS service. If you have a Windows, NetWare, or Linux server then you can centrally manage DNS on them and not have to touch each workstation's hosts file.
 
Hmm, yeah I'd rather not have to touch everyone's hosts file.

We do have a server running in the backroom, but I'll have to check if its a windows server flavor or just windows running IIS.

I'm assumming if its a regular version of windows running IIS it won't be dns server capable?
 
There may be a third party DNS server that runs on Windows desktop versions (Home, Pro, XP). Google it and find out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top