Forum Moderators: phranque

Message Too Old, No Replies

Forbidden - no permission to access.

I would like to accest a folder

         

Montbazin

11:41 pm on Oct 29, 2005 (gmt 0)

10+ Year Member



Hello

I have several computers connected together through a LinkSys gateway

On one of the computers which is on Linux I have Apache installed ans some webpages in

 var/www/html 

There is no problem in addressing the
 index.php 
located in this folder with
 http://192.168.1.68 
, but if I want to open another folder with
 http://192.168.1.68/myfolder/ 
, I get an error message :

Forbidden
You don't have permission to access /myfolder/ on this server.

I would like to be able to put documents in this folder in order to be able to download them in my other computer.

I have

chmod 777 
all the folders on the
 var/www/html 
path, but without any result.

Thanks for your help
roberto

jd01

7:45 pm on Oct 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It does not sound like you have uploaded anything to this directory yet (or not an index page)? If this is the case, and 'Option Indexes' is not set, you will receive a Forbiden error when you try to open the directory in a browser...

If this is the case, to fix it, you will need to either:
Turn the indexes on EG
Options +Indexes

OR

You will need to upload an index file

OR

Request the files directly by their name, not try to open the directory.

If I have misread your question, please let us know.

Hope this helps.

Justin

Montbazin

12:21 am on Nov 4, 2005 (gmt 0)

10+ Year Member



Thanks Justin
I've been absent for a couple of days... sorry.

what is :
...Turn the indexes on EG
Options +Indexes...?

What I want to do is just to have a folder where I can see the files in it and eventually download them. I used to do this on my hosting service.
When I place an

index.html
inside te folder, the it works of course, but that is not what I woud like to achieve.

roberto

jdMorgan

12:52 am on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Options +Indexes...?

Yes, that will enable a 'viewable index' of the folder, as long as no index.html page is present. (Actually as long as no page named in a DirectoryIndex directive is present).

Jim

Montbazin

8:51 am on Nov 4, 2005 (gmt 0)

10+ Year Member



Options +Indexes...?

where can I find the DirectoryIndex...

I still have many problems understanding Apache
thanks
roberto

jdMorgan

1:32 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Description of Apache DirectoryIndex [httpd.apache.org] directive.

You can place it in the httpd.conf file, or in a .htaccess file.

Jim

Montbazin

2:23 pm on Nov 4, 2005 (gmt 0)

10+ Year Member



Thanx Jim

roberto