ErrorPage in Domino 6
Last Tuesday Rupert asked a question about error handling that struck a chord. I've always wondered about handling 404 errors produced by non-NSF URLs, but have never got got round to it.
Apparently you can handle 404s for addresses like codestore.net/foo by adding the following line to Domino's httpd.cnf file:
ErrorPage multifail /home.nsf/404?OpenForm
Well, you can in R5. In Domino 6/7 this no longer works. There's a post here that says the functionality was removed from the http task.
The forums also have a post that offers a solution using DSAPI. The link supplied in that page points to gbd.co.uk/dsapi, which is, ahem, a 404. Oh, the irony (?).
Anybody got any ideas or know how to get this working in version after 5?
Looking at Rupert's email address I noticed it was from UKVillages.co.uk, which caught my attention and got me visiting. It's a Domino-based site that looks like a portal to me. I managed to find a page just for the village of Twenty. Apparently this is where the Howlett clan descend from. Not sure about the name. Must be its population.
Talking of Domino 7:
Yeah -- that Beta 3 download is HUGE, isn't it?
Not so bad with my new "1MB" ADSL line. Took about an hour and a half.
Try this....
Customizing Your 404 with Lotus Domino
From the Notes workstation, choose File - Database - New.
Enter the name of the web server.
Select 'Domino Web Server Configuration Template'.
Enter a title for the database and name it DOMCFG.NSF. Click OK.
Add an entry called Anonymous to the database and give it 'Reader' access.
Determine which database will store your custom error forms.
Create a form that contains the information you want to display. If you're working with a virtual server, select 'Available to Public Access Users' on the Security tab. Save the form.
Repeat the last step for each kind of error message.
In the Domino Configuration database, choose Create - Mapping Error Message. If you're working with a virtual server, choose Virtual Server Settings and enter the IP address.
For each type of error enter the target database and form name in the Target Database File Name and Target Database Form fields. Save your changes.
Assign 'Author' access to the server that stores the database.
Chris. Isn't that only for errors found while "in" a URL with an NSF in it?
You are just right Jake. DOMCFG.NSF only allowes you to trap errors caused by URL with NSF or replica ID in it.
The only way I have figured out is to use another web-server, like Apache, as frontend.
Anybody knows why IBM/LOTUS removed this possibility moving from R5 to ND6?
Yes, that is correct. I guess I miss read the article.
There is a enhancement request for this feature in ND7.
{Link}
So will just have to wait and see....
Chris
Chris, given that that Request is "Last Modified" on 2002-10-11, I don't like your odds ;)
You can find a free solution to custom 404 messages in Domino 6 on our web site at {Link}
Thanks Peter. What about the Linux servers though ;o)
I found this link and it look nice
{Link}