Web Hosting Talk







View Full Version : symbolic link in Windows


nmluan
10-07-2003, 03:53 PM
In Windows is there a way we can create neat things like symbolic links in Linux?
I want to have access to some folders on my computer and don't want to put them under htdocs deep inside Program Files. :(

This is plain Apache on XP and after a big firewal so it won't break.

ML

NewtSys
10-07-2003, 04:55 PM
do you mean something like this:

####<Context path="/software" docBase="c:/software" debug="1"> <Resources className="org.apache.naming.resources.FileDirContext"
caseSensitive="false" allowLinking="true" />
</Context>####

sprintserve
10-07-2003, 07:02 PM
Not sure if this works. But did you try "Create Shortcut" function in Windows?

NewtSys
10-07-2003, 07:50 PM
that makes sense to me... I wasnt sure what he was refering to as far as symbolic linking....now that you mention the short cut....damn it all comes together now.

TDMWeb
10-08-2003, 05:13 AM
Try something like this in httpd.conf:

Alias /somename "C:/afolder/asubfolder"

so that when the punter types www.domain.com/somename in their browser it will display the contents of C:/afolder/asubfolder

(In IIS what you would use is a virtual directory.)

nmluan
10-09-2003, 01:26 AM
Originally posted by TDMWeb
Try something like this in httpd.conf:

Alias /somename "C:/afolder/asubfolder"

so that when the punter types www.domain.com/somename in their browser it will display the contents of C:/afolder/asubfolder

(In IIS what you would use is a virtual directory.)

Thanks, I didn't remember this. :)

by the way, creating shortcuts in Windows doesn't work as a symbolic link though, I tried. It's just a shorcut targeted to the destination files/folder, it's not another name poiting to the same location on the disc sector (the files folder) where I want it to. :(

ML