Welcome to WebmasterWorld Guest from 35.172.195.49

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

ErrorDocument probs...

strange...IMHO

     
4:29 pm on Jan 19, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 19, 2004
posts:3
votes: 0


Hi all,

Congrats on your forum and community...looks great, and friendly people as well.

Anyway, here is my problem: I have configured my .htaccess to show ErrorDocuments as follows:

ErrorDocument 404 /errors/notfound.html
ErrorDocument 403 /errors/forbidden.html
ErrorDocument 401 /errors/authreq.html

So, when I type in http://www.example.com/indeeex.html, I get the correct errordoc, no probs here.

Now I check my docs in the cgi-local (I left these open for illustration purposes):

Try this: http://www.example.com/cgi-local/mcc/data/
I do get an errordoc (the text is dutch and similar to a 403), and I have two questions:

1. There is no protection on these dirs, so why the 403? All dirs in this tree are chmod 755...

2. I do get the 403, but without pics...so it does retrieve the errordoc as specified in the .htaccess, but why does it not load the pics? It does load the pics in the first example, so they are there...

Thanks in advance for all your help. I think I need to make some adjustments to my httpd.conf file, but am not sure...

Cheers,

HappyGoat Alex.

[edited by: jdMorgan at 12:06 am (utc) on Jan. 20, 2004]
[edit reason] No specific URLs, per TOS, Thanks! [/edit]

12:10 am on Jan 20, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


HappyGoat,

Welcome to WebmasterWorld [webmasterworld.com]!

It is likely that some other mechanisim is preventing access to your cgi-local directory. Since it would be the usual case that you would not want your cgi directories accessible to direct HTTP requests, it would not surprise me to find out that your httpd.conf is configured to protect that directory against direct HTTP access. In other words, scripts in that dir can be called from within the server, but pages/files within that dir cannot be accessed by typing their URLs into a browser. For security reasons, that is a good idea.

Jim

9:12 am on Jan 20, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 19, 2004
posts:3
votes: 0


Cheers, jdMorgan, and thanks for the reply.

Was not exactly what I meant, but it makes a lot of sense to me.

Thanks again,

HappyGoat