Can someone please tell me where I am going wrong with my domino application?
I am triyng to set up a custom login form and I have multiple posts on here about doing so, this is where I am:
-
Created DOMCFG.nsf
-
Copied the $$LoginUserForm to my domino app, changerd it slightly.
-
Created an entry in DOMCFG.nsf although this bit I am not sure I got right. I only want this custom form to appear for the one application on the server, everything else can use the standard login form. I chose Applies To: Specific Website/Virtual server, and then WebSite I just put the path of the application on the server “apps/webdocs.nsf”. In the target DB I put the same, “apps/webdocs.nsf” and then listed the form name.
I don’t see the custom form pop up when being asked for a password, only the standard one that’s in DOMCFG.nsf.
I have also tried configuring the application as a website in the server NAB under Configuration\Web\Internet Sites. Wasn’t really sure what to put here though so I guessed at it a little.
The server is on the outside of the company firewall and it is accessible via Notes and the Browser over the internet. In the site information section of the Internet Site configuration document I put the ip address of the server along with the path to the application after it in the host names or addresses mapped to this site.
What am I missing to get this working? If it’s important, I am also trying to use Directory Assistance with the server so I can set up a second NAB to authenticate users for this applicaiton only. I have created DA.nsf and entered that in to the server config document but I haven’t yet restarted domino or done any other configuration to get this to work. At the moment when I see the standard login form I can authenticate with the server using the main NAB.
Subject: Using Custom Login Forms
Custom login forms are applied to web domains e.g. www.acme.com. There must also be a virtual host/Internet site document (depending which route you are using) on the Domino server.
You can’t assocaite a path with a login form; you CAN set the path to be the home page of your internet site and set anonymous access in the site document to No. This will trigger login for ALL urls accessed under that domain name though, not just the one you want.
What is different about the login form for this one database?
Subject: RE: Using Custom Login Forms
In addition to what Melissa said, do NOT put the path to your application in the “Host names or addresses mapped to this site” field. This is for an IP address or (preferably) a host name mapped to the server via DNS only.
The path to your app goes into the home URL field on the configuration tab. Specify the path relative to your data directory. Do not add the protocol or host name here, also do not start the path with a slash (or Domino will generate an unnecessary redirect).
The click-popup help in domcfg.nsf is not very explicit on what “the name of the web site this mapping applies to” means. It is actually what you typed into “Host names or addresses mapped to this site”, it’s NOT the “descriptive name”. So, for the custom login page to kick in, users MUST hit the server using this exact host name.
Subject: RE: Using Custom Login Forms
What if you dont have a domain name for it? At the moment the domino server I am using is a development box. It’s on the outside of the firewall for the firm I am working for, so I can get to it in a browser and via Notes using it’s external IP address. There are several other apps on there that the staff use such as email etc. which requires a login.
I want to set this application that I am working on to have a custom login form. The application is a shop front for the business so it looks completely different to anything else on their server hence me wanting to put a custom login form on there.
Subject: RE: Using Custom Login Forms
For testing purposes, you can map the IP address to a fake domain name using your local Hosts file. The domain name will still make it to the server as part of the HTTP request, so the server settings will apply properly.
Subject: RE: Using Custom Login Forms
Thanks Stan, I just realised this myself. I have a fake domain name in the hosts file and I have this as the host name in the domino configuration. If I hit the site with the fake name it comes up with the custom login and if I use it’s IP address, it comes up with the standard login.
Subject: RE: Using Custom Login Forms
OK so I have put the IP address of the server in the Website/Virtual server (sign in mapping document) and I now get the customised login page but this is obviously for all sites on the server. I don’t have a domain name for the app on the server as this is a dev server, is there anyway to have the custom login page used only for this one app without having a domain name mapped to the website?