+

Search Tips   |   Advanced Search

Determining whether a site is an internet or intranet site

Establish a URL pattern in a Bookmarks configuration file to indicate whether a site is an internet or an intranet site.

Enter a URL pattern for the intranet sites in a configuration file to differentiate between internet and intranet sites.

  1. Access the Bookmarks configuration file as described in the topic Access the Bookmarks configuration file.

  2. Configure the URL pattern for your intranet sites, using the following format:
    <privateIntranetAllocationTable>
        <ipRange from="8.0.0.0" to="8.247.255.255" />
        <ipRange from="9.0.0.0" to="9.0.255.255" />
        <ipRange from="128.38.0.0" to="128.38.255.255" />
        <ipRange from="131.105.0.0" to="131.105.255.255" />
        <ipRange from="151.125.0.0" to="151.125.255.255" />
        <ipRange from="159.46.0.0" to="159.46.255.255" />
        <urlPattern>http://localhost:.*</urlPattern> 
        <urlPattern>http://.*\.aaabiz\.com.*</urlPattern>
    </privateIntranetAllocationTable>

    Use a regular expression to specify each <urlPattern> tag. The regular expression must be a Java RE. We can add multiple <urlPattern> expressions inside <privateIntranetAllocationTable>.

  3. Restart the server.

  4. use wsadmin commands to update the Bookmarks configuration with the new URL ranges.

    1. Open a command window and start wsadmin line tool as described in the topic, Start the wsadmin client.

    2. Enter wsadmin UrlService.recalculateIPAddresses() to update the IP addresses. The exact time depends on the number of URL records in the database. Repeat this update operation each time you edit the URL patterns.


Parent topic:
Administer Bookmarks