Apache: 403 error when putting hosted files in encrytped FS
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Apache: 403 error when putting hosted files in encrytped FS
Hello,
I recently installed Apache2 on Suse 9.3 and basically everything works fine unless I place the hosted files in my encrypted (but mounted) home directory, which is what I want - that will give me a 403 error when I try to visit my website. Other encrypted directories won't work either, but non-encrypted ones I tested will. I don't kow what else I could try or what kind of information could be useful to find the problem. Any idea what it could be?
I think the 403 error is because it's on a different partition, perhaps. Or individual file permissions. Did you "chmod 644" the file and 755 the directory? Are you accessing it by http://yourserver/~youruser/FILE? Also, does the Apache log show anything? (error log)
The files are hosted on a different partition, but I don't think that it has something to do with the permissions. I changed them the way you told me, but the result is just the same. Error logs just show "[Mon Aug 01 14:40:10 2005] [error] [client 80.237.206.93] (13)Permission denied: access to / denied".
My files are located in /home/user/data/srv/www/myserver.dyndns.org/, and I changed the document root directory of my server to just this. I also added this directory to the per-directory options, setting access restriction to "allow then deny" and "allow all requests". I thought that I could just connect to http://myserver.dyndns.org and see the hosted files? That's the way it works if I put them in /tmp/myserver.dyndns.org, but again /tmp is on the same partition as the http server. Anyway, I'm still getting a 403 error if I try to connect to http://myserver.dyndns.org/~user/dat...er.dyndns.org/ or http://myserver.dyndns.org/~user/dat...org/index.html. Same error if I put the files in my second encrypted partition /media/hdb2/myserver.dyndns.org/.
No, that's not it. I copied index.html.de to index.html, with the same result. If I use the same files in another directory (e.g. /tmp/myserver.dyndns.org) it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.