PDA

View Full Version : Page 403


Gimly
11-24-2005, 04: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, 08: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, 10: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-24-2005, 11:17 PM
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-24-2005, 11:18 PM
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-24-2005, 11:37 PM
I stand corrected :-)

pOxbOX
11-24-2005, 11:47 PM
But its possible for all the pages, all the accounts, everything

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

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