|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
Questions
These are just for grins and giggles questions....
Currently on my LAN I can type in the name of my computer into IE and it will bring up the main page of my server (Apache) (C:/AppServ/www/). Let's say I have have 3 or 4 LAN applications I want to run. I want to be able to access them by punching in 'app1', 'app2', etc into IE. I could see one way to do this - have as many servers as apps and name each computer the name of the app. Well, let's say I don't have several PCs to use, and I want to be able to access all the apps one on server and still retain original names (ie, not doing something like appserver/app1, appserver/app2, etc). You see what I'm saying? How would I do that? Thanks!
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers." |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Add:
app1 IP Address app2 IP Address app3 IP Address to the host file in each computer. In your vhosts file for apache make: app1 c:\directory_name app2 c:\directory_name app3 c:\directory_name Restart the apache service for changes to take place. You should be able to access app1 by typing in app1 in your browser window.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
|
|
#3 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
Awesome, thanks!
I think it works now. I haven't restarted for the HOSTS file changes to take effect, but I can direct using my computer name to whatever folder I want. Thanks again! This stuff is pretty neat.... EDIT: One more question, for a large scale network, editing the HOSTS file for hundreds or thousands of computers doesn't seem very feasible. Could you set up a DNS sever or something to handle the name resolving? Last edited by blue60007; 06-16-2006 at 11:12 PM. |
|
|
|
|
|
#4 | |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Quote:
If you had a large network you would have to have a DNS server and that would be the best way to accomplish that. That way you wouldn't have to manually edit each hosts file. A shortcut to creating a DNS server would be to run people through a proxy server on your network and edit the hosts file on your proxy server. |
|
|
|
|
|
|
#5 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
I had the lines in like you said:
app1 192.168.0.199 app2 192.168.0.199 app3 192.168.0.199 and it wasn't working, so I figured a restart was in store. I was wondering if that was right cause all the other entries were like this: 192.168.0.199 app1 192.168.0.199 app2 192.168.0.199 app3 which now works. Thanks again |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|