LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-31-2005, 08:12 AM   #1
nv22nv
LQ Newbie
 
Registered: Jul 2005
Posts: 9

Rep: Reputation: 0
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?
 
Old 08-01-2005, 12:55 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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)
 
Old 08-01-2005, 08:03 AM   #3
nv22nv
LQ Newbie
 
Registered: Jul 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy

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/.
 
Old 08-01-2005, 09:28 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Ok, please do this:
Code:
ls -l /home/user/data/srv/www/myserver.dyndns.org/
 
Old 08-01-2005, 09:45 AM   #5
nv22nv
LQ Newbie
 
Registered: Jul 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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!
 
Old 08-01-2005, 12:10 PM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Interestingly enough, I don't see any "plain" index.html. Try creating one and retesting. (cp index.html.en index.html)
 
Old 08-01-2005, 06:53 PM   #7
nv22nv
LQ Newbie
 
Registered: Jul 2005
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 403 error with Mandrake 10.1 MooCows Linux - Networking 15 03-19-2005 04:50 PM
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 08:35 PM
Apache 403 Error?? jlsain Linux - Software 4 05-08-2004 03:45 PM
Apache 403 error with Mandrake 9.0 Skywolf Linux - Newbie 11 07-15-2003 07:46 AM
apache 403 error fix cortj Linux - Software 0 02-25-2003 03:27 PM


All times are GMT -5. The time now is 04:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration