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/. |
Ok, please do this:
Code:
ls -l /home/user/data/srv/www/myserver.dyndns.org/ |
Here wo go:
Code:
drwxr-xr-x 4 user users 1440 2005-07-30 15:15 . |
Interestingly enough, I don't see any "plain" index.html. Try creating one and retesting. (cp index.html.en index.html)
|
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.
|
All times are GMT -5. The time now is 05:43 AM. |