Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Virtual Host in Windows - how do I deal with Symbolic links?

I'm trying to run a virtual host on a WAPP stack. My virtual host has the FollowSymLinks option, but in Windows, all those symbolic links (I'm using shortcuts, and I think this may be the problem) have the .lnk extension. So if I'm trying to access settings.html, Apache can't find it because all i have sitting there is settings.html.lnk. Apologies if my question is unclear.

like image 623
Peeaytchpee Avatar asked Jun 14 '10 03:06

Peeaytchpee


People also ask

How do symbolic links work in Windows?

A symbolic link is a file-system object that points to another file system object. The object being pointed to is called the target. Symbolic links are transparent to users; the links appear as normal files or directories, and can be acted upon by the user or application in exactly the same manner.

What is symbolic link in Apache?

Essentially, a symbolic link is a form of a soft link. It is a file that can link to another file or a directory by using its path. This acts as a representation or reference to the file or directory. Soft links can link to any file or directory on any computer, not just the one the link is being created on.

Where are symbolic links stored Windows?

You can view a list of symbolic links by running a command in Command Prompt. Open Command Prompt by clicking the Search icon in the Windows taskbar, typing “Command Prompt” in the Search box, and then clicking “Command Prompt” in the search results.

How do I enable local remote symbolic links?

Remote to remote symbolic links are enabled. If you also need to enable remote to local link evaluation, you can substitute R2R:1 with R2L:1 in the set behavior command.


1 Answers

Apache doesn't understand shortcuts. You need to use a proper symlink. On windows this is accomplished using the command line tool mklink. See http://ipggi.wordpress.com/2009/09/07/windows-file-junctions-symbolic-links-and-hard-links/ for more details.

like image 193
hollandlef Avatar answered Oct 12 '22 12:10

hollandlef