Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- May 2010
- Twin Cities
No Access to second drive-(symlink??
I am new to Apache2/lampserver, the OS is Suse 11.4 Apache version is 2.xx. I have a moderate knowledge of web creation, mostly on the winders side of things. My first time setting up a web server; I was surprised the initial setup worked perfectly.
The boot drive has the Suse OS/Lampserver OS about 30 gig in size. It does not have enough room for the web content. The second drive, one terabyte, does.
The problem: I can access the second drive and files locally just fine. When I try and access from the web, I get the infamous 404 file not found.
What I have done: changed permissions for all access to secondary drive, the second drive IS mounted via fstab. I've done a fair amount of research on this and still no luck. I am guessing there are settings somewhere that I am not aware of, but without further guidance I'm sorta stuck.
The drives current mount point is in the media folder, which I know is incorrect. I'm sure it needs to be mounted in Apache, but I have no idea where or how to do that.
Can someone help to get me unstuck?
Linux, the Erector Set of Operating Systems
- Join Date
- May 2011
The files you are attempting to access via webserver need to either be under your DocumentRoot, or symlinked under your DocumentRoot and FollowSymLinks must be enabled, or you need to configure an alias. In the httpd.conf, you should see examples of these, or just look them up in the Apache manual.
you could also look into the --bind option for mount.
mount --bind /source/directory /where/you/want/itlinux user # 503963