GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 31-Dec-2003, 07:44
jmckenna jmckenna is offline
New Member
 
Join Date: Dec 2003
Location: Blacksburg Virginia USA
Posts: 1
jmckenna is on a distinguished road

Virtual hosts on Intranet


Hello,
I am running Apache 2.0.43 / Php 4 /MySql on Win 2000 Pro. I use this machine as a test site before posting web pages live on a server with similiar set up. Anyway I Simply put all my files in the htdocs directory and use Dream Weaver to make most edits and to ftp to the live server. Everyone on the Intranet simply needs to type my computer name in the address bar and they can see my test site which works out great. Now what I would like to do is set up another simple test site, so I read all about virtual hosts and tried hacking the conf file and so now I am even more confused. Do I need to get our Net Work guys to set up something in our Intranet dns for this to work? I don't even really care if others can see the site it is really just for me, and of course a good learning experience too. But can I just set up a name based <virtualhost> with this server name, an alias and a different document root path so for example:
<VirtualHost *:80>

ServerName LocalHoast
ServerAlias LocalHoast *.LocalHoast
DocumentRoot "C:\Program Files\Apache Group\Apache2\csscource"

</VirtualHost>
so now I should be able to type in csscource and go to it's index file?
Some other points. My machine is set up to have a new ip address every two weeks. I can get a static ip if necessary. When I type 'mycomputername' in my computer(the one running Apache) and press enter does that go out to a dns then to my server or does it just jump rite in? Do I need a static ip to then set up name base hosts locally? Does the Intranet dns need to have the name I want to be resolved on it? Thank you all...
  #2  
Old 31-Dec-2003, 09:52
nickbeee's Avatar
nickbeee nickbeee is offline
Junior Member
 
Join Date: Aug 2001
Location: Nottingham, UK
Posts: 80
nickbeee is on a distinguished road
Quote:
Originally Posted by jmckenna
When I type 'mycomputername' in my computer(the one running Apache) and press enter does that go out to a dns then to my server or does it just jump rite in? Do I need a static ip to then set up name base hosts locally? Does the Intranet dns need to have the name I want to be resolved on it? Thank you all...

Firstly it will look in the windows HOSTS file if it exists, then it will go query the DNS server.

http://httpd.apache.org/docs-2.0/vhosts/examples.html

Part of the apache docs gives a very good examples of how this should work.
If you only want to view the virtual hosts on your own PC that Apache is running on then you can put entries in your windows HOSTS file and point them all at 127.0.0.1 If you want anyone else on the intranet to view them you will need your network admin to set up some DNS records for them.

HTH,
__________________
Nick B.
http://www.nowindows.net
http://www.mozilla.org
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging for virtual hosts 88guy Apache Web Server Forum 1 30-Nov-2003 02:18
send email via local intranet skyloon MySQL / PHP Forum 1 30-Jun-2003 07:15
Apache Virtual Hosts I/II pweinb Computer Software Forum - Windows 3 08-Apr-2003 15:15
PHP and ASP hosts jrobbio Free Web Hosting 0 11-Jan-2003 18:38
Know any FREE ASP hosts? JdS Free Web Hosting 1 22-Apr-2002 14:01

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:50.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.