Forum Moderators: phranque

Message Too Old, No Replies

followsymlink problem

don`t want to download a .lnk file

         

MrDyn

12:52 pm on Sep 12, 2004 (gmt 0)

10+ Year Member



Hello,

I`ve a question regarding the FollowSymLink option. I added the following lines to httpd.conf and restartet the apache :

Alias /private_area/ "C:/Web/private/"

<Directory "C:/Web/private/">
Options all +FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Ok, I can browse this directory.

The problem:
I created a link to another directory (testdir)in this directory. The intention was, that the apache follows the link and displays the content of the linked directory. What I see is a file named testdir.lnk and when I click on it I get a download.

I thought, I can influence the behaviour with the FollowSymLink option? How can I force the apache to "follow" the link?

Thank you very much

encyclo

1:27 pm on Sep 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not very sure of this, so you might want to wait for some other answers first, but I believe the only way you can do a symlink on Windows that can be followed by Apache is if you install Windows Services for UNIX [microsoft.com] (you can download it for free from Microsoft) and use that to create the symlink.

outrun

1:33 pm on Sep 12, 2004 (gmt 0)

10+ Year Member



To simulate symbolic links on NFTS try Junction [sysinternals.com] from sysinternals its free.

regards,
Mark