Go Back   Computer Forums > General Computing > Networking | DNS
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-19-2004, 03:37 PM   #1
Beta Member
 
Join Date: Oct 2004
Posts: 2
Default Host Files

Anybody know how to add a sub directory to a host file?? like: 127.0.0.1/myfolder/withmypageinit


Thank you in advance
__________________

Bob Norris is offline   Reply With Quote
Old 10-19-2004, 03:48 PM   #2
BSOD
 
Masahiro's Avatar
 
Join Date: May 2004
Posts: 1,896
Default Re: Host Files

Erm, do you mean create a directory?

If so, do it in your ftp client (see the help file if you need to know how)
__________________

Masahiro is offline   Reply With Quote
Old 10-19-2004, 03:56 PM   #3
Beta Member
 
Join Date: Oct 2004
Posts: 2
Default Same

No,,

A host file is used to steer a domain to a web page stored locally on a computer. It is usefull if you run a server on your network where have to get it locally.
So what I need to know is how can you add a subdirectory to the code.
Example:

127.0.0.1 www.mysite.com

If you type in www.mysite.com and you have a server running on your computer it will go directly to the server. So heres what im asking;

Web pags is in sub folder in directory:

127.0.0.1/webpage www.mysite.com


How can I add a sub to the 127.0.0.1 ????
Bob Norris is offline   Reply With Quote
Old 10-20-2004, 07:09 PM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Host Files

you can't add a sub directory to your host file...
you cuold look at if from another way though... add a subdomain...

so
127.0.0.1 http://www.mysite.com
127.0.0.1 http://test.mysite.com


The either use a virtual directory config if you use apache or IIS to redirect the requests based on the broswer URL into the correct folder.
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 09:18 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0