logo

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:

screengrab

Comments

  1. Yeah -- that Beta 3 download is HUGE, isn't it?

    • avatar
    • Jake Howlett
    • Tue 10 May 2005 10:22

    Not so bad with my new "1MB" ADSL line. Took about an hour and a half.

  2. 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.

    • avatar
    • Jake Howlett
    • Tue 10 May 2005 10:59

    Chris. Isn't that only for errors found while "in" a URL with an NSF in it?

    • avatar
    • pr0gm4n
    • Tue 10 May 2005 11:19

    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?

  3. 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

  4. Chris, given that that Request is "Last Modified" on 2002-10-11, I don't like your odds ;)

  5. You can find a free solution to custom 404 messages in Domino 6 on our web site at {Link}

    • avatar
    • Jake Howlett
    • Wed 11 May 2005 04:49

    Thanks Peter. What about the Linux servers though ;o)

  6. I found this link and it look nice

    {Link}

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Tue 10 May 2005

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content