LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-12-2004, 02:54 PM   #1
JanDeMan
LQ Newbie
 
Registered: Apr 2004
Location: After PC
Distribution: Debian Woody 3.0
Posts: 26

Rep: Reputation: 15
403 Forbidden


Hi,

i maded i brand new folder in /var/www/html named jan
i putted there a couple of files and a go to

10.0.0.10/jan

and i like to have a listing of the fils in place of
Forbidden
You don't have permission to access /jan/ on this server.

What must a change ?
 
Old 04-12-2004, 03:10 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

You probably need to give the user that apache runs as access to that directory - what are the permissions on it:
ls -la /var/www/html
 
Old 04-12-2004, 03:26 PM   #3
JanDeMan
LQ Newbie
 
Registered: Apr 2004
Location: After PC
Distribution: Debian Woody 3.0
Posts: 26

Original Poster
Rep: Reputation: 15
i did ones chmod 777 jan

Code:
drwxr-xr-x  4 root root 4096 apr 12 20:44 ./
drwxr-xr-x  7 root root 4096 apr 12 16:04 ../
drwxr-xr-x  2 root root 4096 apr 12 16:12 addon-modules/
-rwxr-xr-x  1 root root 1406 okt 29 18:36 favicon.ico*
-rwxr-xr-x  1 root root 6295 okt 29 18:36 index.shtml*
-rwxr-xr-x  1 root root  153 okt 29 18:36 optim.html*
-rwxr-xr-x  1 root root  609 okt 29 18:36 platform.html*
drwxrwxr-x  2 root root 4096 apr 12 20:40 jan/
 
Old 04-12-2004, 03:29 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Then it is probably just the file list that has been disabled. For that directory or one above it add "Indexes" the "Options" directive in httpd.conf.
 
Old 04-12-2004, 03:29 PM   #5
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
Look in your httpd.conf file (/etc/apache/httpd.conf on my system). Somewhere in there should be an option for allowing file browsing.
 
Old 04-12-2004, 03:41 PM   #6
JanDeMan
LQ Newbie
 
Registered: Apr 2004
Location: After PC
Distribution: Debian Woody 3.0
Posts: 26

Original Poster
Rep: Reputation: 15
ah ok

Code:
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "SymLinksifOwnerMatch", "ExecCGI", or "MultiVie$#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options -Indexes FollowSymLinks MultiViews
This one ?

GreetZ, and much thanx
 
Old 04-12-2004, 03:44 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Yes - change it to:
Options Indexes FollowSymLinks MultiViews
 
Old 04-12-2004, 04:02 PM   #8
JanDeMan
LQ Newbie
 
Registered: Apr 2004
Location: After PC
Distribution: Debian Woody 3.0
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Yes - change it to:
Options Indexes FollowSymLinks MultiViews
Thx
 
  


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
403 Forbidden 1veedo Linux - Newbie 2 11-27-2005 06:46 PM
apache 403 forbidden? wezhousheng Linux - Networking 5 05-13-2005 01:15 AM
403 Forbidden patpawlowski Linux - Newbie 1 04-26-2005 10:20 AM
403 forbidden Flawless Slackware 4 03-04-2003 08:24 AM
403 Forbidden??? morbo Linux - Networking 11 07-04-2002 11:17 AM


All times are GMT -5. The time now is 05:04 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