Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-16-2006, 09:32 PM   #1
Wx geek
 
blue60007's Avatar
 
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."
blue60007 is offline   Reply With Quote
Old 06-16-2006, 09:43 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
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
mairving is offline   Reply With Quote
Old 06-16-2006, 11:09 PM   #3
Wx geek
 
blue60007's Avatar
 
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.
blue60007 is offline   Reply With Quote
Old 06-17-2006, 09:12 AM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
Originally Posted by blue60007
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?
First you don' need to restart for the hosts file to work. You just have to restart the Apache service.

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.
mairving is offline   Reply With Quote
Old 06-17-2006, 09:35 AM   #5
Wx geek
 
blue60007's Avatar
 
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
blue60007 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2