PDA

View Full Version : Page 403


Gimly
11-24-2005, 05:50 PM
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.

timryberg
11-24-2005, 09:32 PM
"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?

pOxbOX
11-24-2005, 11:27 PM
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 ;)

timryberg
11-25-2005, 12:17 AM
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

IWorx-Socheat
11-25-2005, 12:18 AM
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

timryberg
11-25-2005, 12:37 AM
I stand corrected :-)

pOxbOX
11-25-2005, 12:47 AM
But its possible for all the pages, all the accounts, everything

IWorx-Socheat
11-25-2005, 12:57 AM
Sure, just place those options in /etc/httpd/conf/httpd.conf and restart apache.

pOxbOX
11-25-2005, 01:17 AM
Ok thanks ;)