|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dan at 100 tips and counting (continued)
And so on and so on. Since there are so many possibilities, I began trying to find what they all had in common. One thing that I noted is that I couldn't think of any URL that would have ".nsf/$D" in it that was not trying to use either the $DefaultNav, $DefaultView, or $DefaultForm URL commands, which I did not want people using. So I came up with a total of 12 mappings (16 if your server is case-sensitive) to cover all of the possible URL combinations people might use when attempting to invoke one of the three commands listed above.
Since there are 12 (or 16) mappings, rather than trying to create a URL redirection document for each one, you can alternatively just paste the code below into the httpd.cnf file on your Domino server. Just make sure you make a backup first, however, just in case. Here's the text to insert into the httpd.cnf file:
#######################################
# Redirections to prevent use of $DefaultNav,
# $DefaultView and $DefaultForm URL commands
#######################################
map */*.*/$d* */*.nsf
map */*.*/$%44* */*.nsf
map */*.*/$%64* */*.nsf
map */*.*/%24d* */*.nsf
map */*.*/%24%44* */*.nsf
map */*.*/%24%64* */*.nsf
map */*%2E*/$d* */*.nsf
map */*%2E*/$%44* */*.nsf
map */*%2E*/$%64* */*.nsf
map */*%2E*/%24d* */*.nsf
map */*%2E*/%24%44* */*.nsf
map */*%2E*/%24%64* */*.nsf
|
For case-sensitive servers, such as Sun and Linux, add the following additional four mappings:
map */*.*/$D* */*.nsf
map */*.*/%24D* */*.nsf
map */*%2E*/$D* */*.nsf
map */*%2E*/%24D* */*.nsf
|
Once you're done modifying the httpd.cnf file, type "tell http restart" on the server console for the changes to take effect. Then start testing your server to make sure everything is working well for you. The redirections should take users to the base URL for the current database, so if the database launch properties aren't set correctly, you might still see a list of views. Note also that you could have a problem if any developers named any design elements starting with "$D", but this seems fairly unlikely.
I want to thank Ben Newman of Quest Enterprises Ltd. (at http://www.quest.ch), a Notes Consultancy based in Zurich, for emailing me about the Hex code issue and posting the information on the PowerBoards. Thanks also to Jorn Bijnsdorp for being the first to post the same information on the PowerBoards. And finally, special thanks to my co-workers Shar Bacchus and Charles Corpuz for helping me immensely with thinking this problem through and coming up with a solution.
Even after all of the thinking and testing I've done trying to solve this problem, I know that there could have been things that I might have overlooked, so if you have any more suggestions or just want to tell me about your experiences trying to deal with $DefaultNav and similar problems, email me at dvelasco@dominopower.com.
For more information about Hex code and Domino URL commands, you can visit the ASCII table with Hex code information at http://www.neurophys.wisc.edu/www/comp/docs/ascii.html.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.
Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.
Learn how to easily clean up your address book. |
-- Advertisement --
Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.
Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).
Tap here to get started! |
|
|
|
|
|
|
|
|
|
|