Forum Moderators: phranque

Message Too Old, No Replies

cannot access pages in usb drive(403 error)

         

wallchan

12:40 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



Hi,

I'm using Fedore Core 4 with apache2 and I've put some web files in my USB 1.0 hard drive. When I access these files through apache by typing something like 'http://localhost/usblink/index.html'('usblink' is symbolic link to the directory in USB) it gives out 403 forbidden error. However, when I access this file through normal file access (e.g. file:////var/www/html/usblink/index.html), the content can be delivered with no problem. Is there any solution? Thanks a lot.

Wallace

zCat

1:31 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



The webserver probably can't read the files on the USB drive - you'll need to check the file and directory permissions.

wallchan

7:29 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



Hi,

The httpd error_log file indicates 'Symbolic link not allowed:'.

I've checked the permission of files in USB drives and seems no problem(all 755). Another finding is that when the web content is located in main hard drive rather than in USB drive (both with same permission -- 755) and it works by [localhost...] Any special setting on http accessing USB drive?

Thanks and regards,
Wallace

zCat

8:36 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



The httpd error_log file indicates 'Symbolic link not allowed:'

Well, that's the problem then. You probably need to allow "FollowSymLinks" at some point in your Apache configuration.

jdMorgan

12:32 am on Apr 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I agree.

See the Options [httpd.apache.org] directive in Apache core.

Jim