Accessing Custom ASP pages Using DataHub v9
After upgrading to DataHub v9 any attempts to access a custom ASP page (that was working on a previous version) is met with a HTTP - 404 (page not found) or HTTP - 403 (Forbidden) error. How can these pages be accessed on DataHub v9?
HTTP 404 Errors
The DataHub serves user content from the C:\users\<installing user>\appdata\roaming\cogent datahub\webcontent\ directory by default. All ASP pages should be placed here in order to be accessible through a browser. For example storing a HelloWorld.ASP page in C:\users\sampleuser\appdata\roaming\cogent datahub\webcontent would be accessible through a browser via the following URL:
http://localhost/HelloWorld.ASP
Moving that HelloWorld.ASP page to a subdirectory of WebContent would change the URL to be:
http://localhost/<sub directory(ies)>/HelloWorld.ASP
HTTP 403 Errors
These errors indicate that the WebServer does not have permissions to access the location where the ASP files are stored. With DataHub version 9 the security on ASP pages has been changed to allow serving ASP pages only from directories a user has explicitly desginated. An entry must be made in the plugin_AspHandler.cfg file which can be found in the DataHub configuration Directory (usually C:\users\<user name>\appdata\roaming\cogent datahub).
Make sure that custom directories/subdirectories are added as an UrlRule to the AspHandlerSettings section of the config file.
For example if the ASP pages have been stored in:
C:\users\username\appdata\roaming\cogent datahub\webcontent\Test
Then the URL to access the pages here would be:
http://localhost/Test/<page name>
And the plugin_AspHandler.cfg content would be: (new content highlighted below)
