Previous Topic: Update the DNS Tables with your Port-based Virtual HostsNext Topic: Add Public and Internal URLs on your SharePoint Server for your Port-Based Hosts


Create Proxy Rules for your Port-based Virtual Hosts

Port-based virtual hosts require different settings than the default proxy rule file used by the Agent for SharePoint. After defining virtual hosts for your web applications, create proxy rules for your port-based virtual hosts.

Follow these steps:

  1. To preserve your current proxy rules, rename your existing proxyrules.xml file in the following directory:
    Agent-for-SharePoint_home\proxy-engine\conf
    
  2. Open the following file with a text editor:
    Agent-for-SharePoint_home\proxy-engine\examples\proxyrules\proxyrules_example1.xml
    
  3. Save a copy of the previous file using the following path and file name:
    Agent-for-SharePoint_home\proxy-engine\conf\proxyrules.xml
    
  4. Locate the following line:
    <nete:proxyrules xmlns:nete="http://www.company.com/">
    
  5. Replace the http://www.company.com/ with the name of your virtual host, as shown in the following example:
    <nete:proxyrules xmlns:nete="http://www.example.com/">
    
  6. Locate the following line:
    <nete:case value="banking.company.com:80">
    
  7. Replace the banking.company:com:80 with the domain name, suffix and port number for your SharePoint web application, as shown in the following example:
    sharepoint.example.com:8606
    
  8. Add your other web applications to the proxy rules file by repeating Steps 5 through 7 in the following section:
    <!-- replace bondtrading.company.com with a virtual host defined in the server.conf file -->
          <nete:case value="bondtrading.company.com:80">
          <!-- replace http://server2.company.com with the appropriate destination server -->
             <nete:forward>http://server2.company.com$1</nete:forward>
    </nete:case>
    
  9. Duplicate the previous section and modify it until all your port-based web applications have proxy rules.
  10. Locate the following line:
    <nete:forward>http://home.company.com$1</nete:forward>
    
  11. Replace the http://home.company.com in the previous line with the URL of a default site you want to use for requests not matching your web applications.
  12. Save the file and close the text editor.
  13. Restart the Agent for SharePoint.