Page 403

[B]Hi Interworx Team,

I want to know how to see the files contained in a file instead of the page 403 Forbidden Acess , which file I have to modify? Can you help me please ?

Thank you in advance for your answers.
[/B]

“files contained in a file” can you explain this better?

If you don’t like the default 403 message youc an create your own (or a server wide or account specific basis) and we can explain how to do that. Is that what you want?

[B]No,

When a directory do not contain a index.html or .php, Apache show the HTTP 403 error

We want to remove this to see the files listing ;)[/B]

In either httpd.conf (to do it globally) or the individual domain.com.conf files, locate and comment out the following line like so:

> DirectoryIndex Index.html

Then reload httpd

service httpd reload

What you need to do is create a .htaccess file in the directory you want a file listing in. Then put this inside the .htaccess file:

Options +Indexes
IndexOptions FancyIndexing

The following links will give you more information:
http://httpd.apache.org/docs/2.0/mod/core.html#options
http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#indexoptions

Socheat

I stand corrected :slight_smile:

But its possible for all the pages, all the accounts, everything

Sure, just place those options in /etc/httpd/conf/httpd.conf and restart apache.

Its dont work look :

http://espace4you.org/~poxbox

Ok thanks :wink: