LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache: 403 error when putting hosted files in encrytped FS (https://www.linuxquestions.org/questions/linux-networking-3/apache-403-error-when-putting-hosted-files-in-encrytped-fs-348542/)

nv22nv 07-31-2005 08:12 AM

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?

Matir 08-01-2005 12:55 AM

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)

nv22nv 08-01-2005 08:03 AM

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

Matir 08-01-2005 09:28 AM

Ok, please do this:
Code:

ls -l /home/user/data/srv/www/myserver.dyndns.org/

nv22nv 08-01-2005 09:45 AM

Here wo go:
Code:

drwxr-xr-x  4 user users 1440 2005-07-30 15:15 .
drwxr-xr-x  3 user users  88 2005-08-01 14:38 ..
-rw-r--r--  1 user users 2160 2005-07-26 15:59 apache_pb2_ani.gif
-rw-r--r--  1 user users 2414 2005-07-26 15:59 apache_pb2.gif
-rw-r--r--  1 user users 1463 2005-07-26 15:59 apache_pb2.png
-rw-r--r--  1 user users 2326 2005-07-26 15:59 apache_pb.gif
-rw-r--r--  1 user users 1385 2005-07-26 15:59 apache_pb.png
-rw-r--r--  1 user users  302 2005-07-26 15:59 favicon.ico
drwxr-xr-x  2 user users  176 2005-07-26 15:59 gif
-rw-r--r--  1 user users 1663 2005-07-26 15:59 index.html.ca
-rw-r--r--  1 user users 1583 2005-07-26 15:59 index.html.cz.iso8859-2
-rw-r--r--  1 user users 2206 2005-07-27 06:54 index.html.de
-rw-r--r--  1 user users 1508 2005-07-26 15:59 index.html.dk
-rw-r--r--  1 user users 1828 2005-07-26 15:59 index.html.ee
-rw-r--r--  1 user users 1618 2005-07-26 15:59 index.html.el
-rw-r--r--  1 user users 1456 2005-07-26 15:59 index.html.en
-rw-r--r--  1 user users 1735 2005-07-26 15:59 index.html.es
-rw-r--r--  1 user users 1867 2005-07-26 15:59 index.html.et
-rw-r--r--  1 user users 1505 2005-07-26 15:59 index.html.fr
-rw-r--r--  1 user users 3704 2005-07-26 15:59 index.html.he.iso8859-8
-rw-r--r--  1 user users 1604 2005-07-26 15:59 index.html.hr.iso8859-2
-rw-r--r--  1 user users 1788 2005-07-26 15:59 index.html.it
-rw-r--r--  1 user users 1630 2005-07-26 15:59 index.html.ja.iso2022-jp
-rw-r--r--  1 user users 1543 2005-07-26 15:59 index.html.ko.euc-kr
-rw-r--r--  1 user users 1837 2005-07-26 15:59 index.html.lb.utf8
-rw-r--r--  1 user users 1968 2005-07-26 15:59 index.html.nl
-rw-r--r--  1 user users 1534 2005-07-26 15:59 index.html.nn
-rw-r--r--  1 user users 1467 2005-07-26 15:59 index.html.no
-rw-r--r--  1 user users 1438 2005-07-26 15:59 index.html.po.iso8859-2
-rw-r--r--  1 user users 1773 2005-07-26 15:59 index.html.pt
-rw-r--r--  1 user users 2046 2005-07-26 15:59 index.html.pt-br
-rw-r--r--  1 user users 1522 2005-07-26 15:59 index.html.ru.cp-1251
-rw-r--r--  1 user users 1515 2005-07-26 15:59 index.html.ru.cp866
-rw-r--r--  1 user users 1520 2005-07-26 15:59 index.html.ru.iso-ru
-rw-r--r--  1 user users 1516 2005-07-26 15:59 index.html.ru.koi8-r
-rw-r--r--  1 user users 2249 2005-07-26 15:59 index.html.ru.utf8
-rw-r--r--  1 user users 1631 2005-07-26 15:59 index.html.sv
-rw-r--r--  1 user users 2401 2005-07-26 15:59 index.html.var
-rw-r--r--  1 user users 1018 2005-07-26 15:59 index.html.zh-cn.gb2312
-rw-r--r--  1 user users 1032 2005-07-26 15:59 index.html.zh-tw.big5
drwxr-xr-x  6 user users 2928 2005-07-26 15:59 phpMyAdmin
-rw-r--r--  1 user users  26 2005-07-26 15:59 robots.txt

Thanks for helping!

Matir 08-01-2005 12:10 PM

Interestingly enough, I don't see any "plain" index.html. Try creating one and retesting. (cp index.html.en index.html)

nv22nv 08-01-2005 06:53 PM

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.