You are not logged in.

#1 2008-10-22 17:38:55

kcr
Member
Registered: 2007-02-09
Posts: 21

xampp and forbidden 403 / browsing files lighttpd

Hello,
i have a problem with xampp, but is the same if i use apache or lighttpd.. xampp uses /opt/lampp/htdocs/ for the DocumentRoot, but all my work is in /home/kcr/working and i want leave that there.. if i change the DocumentRoot with

DocumentRoot="/home/kcr/working"

my browser give me the 403 error..what i want is the possibilty of browsing my own work directory...
what can i do?
thanks

Last edited by kcr (2008-10-23 19:22:13)

Offline

#2 2008-10-22 18:08:54

mycow
Member
From: Athens / Greece
Registered: 2008-09-28
Posts: 10
Website

Re: xampp and forbidden 403 / browsing files lighttpd

have you tried using /home/kcr/public_html to see if you get any errors?

Offline

#3 2008-10-22 18:12:00

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: xampp and forbidden 403 / browsing files lighttpd

Users' home directories are assigned 700 (drwx------) permissions by default. Therefore, the web server, which is running under "http", is unable to access your ~. You can either run the web server under your user account, or alter your home folder's permissions to allow access to the web server (755 maybe).

Last edited by foutrelis (2008-10-22 18:12:46)

Offline

#4 2008-10-22 18:15:28

kcr
Member
Registered: 2007-02-09
Posts: 21

Re: xampp and forbidden 403 / browsing files lighttpd

thanks, i will change my home folder's permission...
thanks to everyone..

Offline

#5 2008-10-23 19:00:38

kcr
Member
Registered: 2007-02-09
Posts: 21

Re: xampp and forbidden 403 / browsing files lighttpd

hello,
meanwhile i tried lighttpd an now i'm using it... thanks to the wiki it works perfect but i have a question...
my friend at home has apache and he can browse all the directories in his directory-server with his browser.. how can i do this with lighttpd?
thanks
kcr

Offline

#6 2008-10-24 00:58:01

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: xampp and forbidden 403 / browsing files lighttpd

kcr wrote:

hello,
my friend at home has apache and he can browse all the directories in his directory-server with his browser.. how can i do this with lighttpd?

Uncomment line 176 in /etc/lighttpd/lighttpd.conf:

dir-listing.activate       = "enable"

Offline

Board footer

Powered by FluxBB