FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just recently upgraded from FC2 to FC5. I have apache configured as my webserver. I also have a mount point (CIFS since the upgrade) that points to a windows share. In my www/html directory I have a symlink that points to this mount point. This windows share contains Word Docs that I serve to my users. Now when users click on one of the links Word opens up on their machine, but they get a blank document.
I can open these files from the server by going through the symlink. I can also see a listing of the directory in my browser. As an additional test I put a "test.html" document on this share and it opens in my browser without problem. I don't see any error messages in my error log or my access log, but I can't seem to open the Word docs (or Excel docs too).
It sounds like your FollowSymlinks option is working, since the users can see the files. Does the user account that Apache is running as have read rights to the required directory and the files in it?
I believe so, yes. What I did to test this was I modified my http.conf file and set the user and group to the user id that I am mounting the share as. It didn't make a difference.
I haven't tried symbolic links to remote file systems like your CIFS mount. Have you tried creating a separate <Directory> entry in httpd.conf that points to the location instead?
Also, I don't know if link is installed in FC5 but running which link should tell you.
I didn't try a Directory entry. However, I did try an alias. Which gave me the same result. I'll check into the link command. It does look like link is included.
I looked into link and I don't believe it will work for me. According to the man page it only creates links to files. I have my link set to a directory and I'm trying to link to the files in that directory on my webpage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.