× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There's no conflict with what I said. The requested path is one of the
HTTP headers.

BTW, here's how I used a Net.Data macro:

In httpd.conf:

AddOutputFilter INCLUDES .html
ErrorDocument 404 /404.html

404.html consists of:

<!--#exec cgi="/net-data/404.mac/main" --> 

My macro has the following in it:

%DEFINE {
    REQUEST_URI = %ENVVAR
    HTTP_HOST = %ENVVAR
    HTTPS = %ENVVAR
%}
%HTML (main) {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd";>
<HTML>
<head>
... Stuff to look at REQUEST_URI, HTTP_HOST, and HTTP ...
</body>
</HTML>

%}

I did try calling the macro directly but I ended up with the request
path being set to my macro instead of the path.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Wilt, Charles
Sent: Friday, June 16, 2006 2:24 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Handling 500-Internal Server error caused
bylackofauthority at the object level

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx 
[mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of 
Matt.Haas@xxxxxxxxxxx
Sent: Friday, June 16, 2006 2:00 PM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Handling 500-Internal Server error 
caused by lackofauthority at the object level

The error messages are customizable and you could even write 
a Net.Data
macro or a CGI program that is called which could look at the 
URL and do
whatever you want (I did this on our B2B shopping site to get 
different
looking 401 and 403 error pages for each virtual directory). 

Not sure I understand this.  Doesn't it conflict with your next
statement?

You're
basically restricted to the HTTP headers as far as information goes so
short of writing your own error handling module, you're not likely to
get enough info back to tell you it was an authority issue.


This is what I was afraid of.

What I was hoping for was someplace in the apache configuration that
would allow me to specify an error handling procedure or something.
Couldn't that error handler look back through the job log for the
CPF9821 - Not Authorized message and indicate some other error page to
send back to the browser.

Thanks,

Charles Wilt


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.