LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-10-2006, 10:08 AM   #1
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Rep: Reputation: 0
FC5 Apache won't server up files on symlink


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).

Any suggestions?

Thanks,
Brian
 
Old 05-10-2006, 02:43 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 05-10-2006, 03:53 PM   #3
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 05-10-2006, 05:31 PM   #4
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
Does FC5 support using the "link" command instead of a traditional symlink ????

Helped me out in a similiar problem with SLES
 
Old 05-10-2006, 06:26 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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.
 
Old 05-11-2006, 08:58 AM   #6
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 05-11-2006, 09:26 AM   #7
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
symlink directory eats files silindrin Debian 3 03-13-2006 08:28 AM
symlink multiple files to new directory with new extension jmanjohn61 Linux - General 1 01-06-2005 12:55 PM
Apache Server won't serve up large files perrond Linux - Networking 4 06-21-2004 10:53 AM
Can't view apache server files on lan Remy Avril Jr. Linux - Newbie 18 10-20-2003 08:38 AM
Apache portal to files on NT server josephswagner Linux - Software 5 03-31-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration