<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
    <!-- PageID 382 - published by RedDot 7.5 - 7.5.1.69 - 22111 -->
    <META name="PublicArticle" content="True" />
    <META http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <META name="keywords" />
    <META name="summary" />
    <META name="product" content="fp_web" />
    <META name="version" content="v85" />
    <META name="book" content="Content Gateway Manager Help, v8.5.x" />
    <title>Directing SSL traffic to Content Gateway via explicit proxy</title>
    <!--Loading the 2016 fonts.-->
    <script type="text/javascript" src="//fast.fonts.net/jsapi/c504d579-e135-4f75-8335-4906f6c6ce67.js"></script>
    <!--Library content styles.-->
    <link rel="StyleSheet" href="https://help.forcepoint.com/docs/ni/assets/css/help2016.css" type="text/css" media="all" />
    <!--2016 font support -->
    <link type="text/css" rel="stylesheet" href="//fast.fonts.net/cssapi/c504d579-e135-4f75-8335-4906f6c6ce67.css" />
  </head>
  <body>
    <!--googleoff: all-->
    <a href="https://www.forcepoint.com">
      <img class="logo" alt="Forcepoint logo" src="https://help.forcepoint.com/docs/ni/assets/logo1.png" />
    </a>
    <div class="extLinksContainer">
      <a class="extLinks" href="//support.forcepoint.com/documentation">Documentation</a> | <a class="extLinks" href="//support.forcepoint.com">Support</a></div>
    <!--
		<wsApp:UserAccess ID="useraccess1" runat="server" IsSecure="False" />
		-->
    <div class="spacer1"></div>
    <br />
    <!-- New Navigation DIV -->
    <div class="TL_nav" style="text-align: left;">
      <table cellspacing="0" class="toolBarTable" summary="">
        <!-- End New Navigation DIV -->
        <tr>
          <td>
            <!-- New Go To TOC -->
            <a href="toc.aspx"><img src="images/toc.png" alt="Go to the table of contents" border="0" /></a>
            <!-- End Go To TOC -->
          </td>
          <td>
            <!-- New Previous -->
            <a href="ssl_revoc_info.aspx"><img src="images/prev.png" alt="Go to the previous page" border="0" /></a>
            <!-- End New Previous -->
          </td>
          <td>
            <!-- New Next (Active) -->
            <a href="c_incident.aspx"><img src="images/next.png" alt="Go to the next page" border="0" /></a>
            <!-- End New Next (Active) -->
          </td>
          <td>
            <!-- New PDF -->
            <a href="wcg_help.pdf"><img src="images/pdf.png" alt="View or print as PDF" border="0" /></a>
            <!-- End New PDF -->
          </td>
          <!--Start JR breadcrumbs -->
          <td width="20px"></td>
          <td>
            <div class="WebWorks_Breadcrumbs" style="text-align: left;">
              <a class="WebWorks_Breadcrumb_Link" href="ssl_intro.aspx">Working With Encrypted Data</a> &gt; Directing SSL traffic to Content Gateway via explicit proxy</div>
          </td>
          <!--End JR breadcrumbs -->
        </tr>
      </table>
    </div>
    <!--googleon: all-->
    <div>
      <div class="N1H-Heading1"><a name="806518">Directing SSL traffic to Content Gateway via explicit proxy</a></div>
      <div class="IN-TopicInfo"><a name="806523">Help | Content Gateway | v8.5.x</a></div>
      <div class="B-Body"><a name="806527">Use an existing PAC file or create a new one to direct HTTPS traffic to Content Gateway.</a></div>
      <div class="B-Body"><a name="822819">Step 5, below, provides a script that can be used a basis for building a custom PAC file.</a></div>
      <div class="B-Body"><a name="822826">To configure Content Gateway to serve a PAC file:</a></div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">1.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806528">In the Content Gateway manager, go to the </a><span class="B-Bold">Configure&nbsp;&gt; My Proxy&nbsp; &gt; Basic&nbsp;&gt; General</span> tab.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">2.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806529">Under Features&nbsp;&gt; Protocols, make sure that, ensure that HTTPS is </a><span class="B-Bold">On</span>.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="I-IndentedText"><a name="806530">If HTTPS is disabled, set it to </a><span class="B-Bold">On</span>, click <span class="B-Bold">Apply</span>, and then click <span class="B-Bold">Restart</span>.</div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">3.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806531">Go to the </a><span class="B-Bold">Configure&nbsp;&gt; Content Routing&nbsp;&gt; Browser Auto-Config&nbsp;&gt; PAC</span> tab.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">4.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806532">Specify an </a><span class="B-Bold">Auto-Configuration Port</span> for the proxy to use to serve the PAC file (8083, by default). </div>
            </td>
          </tr>
        </table>
      </div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">5.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806533">Use the </a><span class="B-Bold">PAC Settings</span> area to review or create the PAC file:</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="B2-Bullet2_outer" style="margin-left: 18pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="B2-Bullet2_inner" style="width: 18pt; white-space: nowrap">
                <img src="b2.png" alt="*" border="0" width="8" height="7" />
              </div>
            </td>
            <td width="100%">
              <div class="B2-Bullet2_inner"><a name="806534">If an administrator has copied an existing PAC file into the Content Gateway </a><span class="B-Bold">config</span> directory (as described in <span class="LEM-LinkEmphasis"><a href="xplctpac.aspx" title="Using a PAC file">Using a PAC file</a></span>), the contents of the file are displayed. Review and update the file as needed.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="B2-Bullet2_outer" style="margin-left: 18pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="B2-Bullet2_inner" style="width: 18pt; white-space: nowrap">
                <img src="b2.png" alt="*" border="0" width="8" height="7" />
              </div>
            </td>
            <td width="100%">
              <div class="B2-Bullet2_inner"><a name="806535">If no PAC file has been configured, the PAC Settings field is empty. To start creating a PAC file, copy and paste the following template into the PAC Settings field. Replace &lt;</a><span class="EM-Emphasis">host</span>&gt; with the IP address or hostname of the Content Gateway machine.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="CO1-CodeIndent1"><a name="806536">function FindProxyForURL(url, host)</a></div>
      <div class="CO1-CodeIndent1"><a name="806537">{</a></div>
      <div class="CO1-CodeIndent1"><a name="806538">  url = url.toLowerCase();</a></div>
      <div class="CO1-CodeIndent1"><a name="806539">  host = host.toLowerCase();</a></div>
      <div class="CO1-CodeIndent1"><a name="823611">  if(url.substring(0, 5) == "http:"){</a></div>
      <div class="CO1-CodeIndent1"><a name="823612">    return "PROXY &lt;host&gt;:8080";</a></div>
      <div class="CO1-CodeIndent1"><a name="823613">  }</a></div>
      <div class="CO1-CodeIndent1"><a name="823601">  else if(url.substring(0, 4) == "ftp:"){</a></div>
      <div class="CO1-CodeIndent1"><a name="823602">    return "PROXY &lt;host&gt;:2121";</a></div>
      <div class="CO1-CodeIndent1"><a name="823603">  }</a></div>
      <div class="CO1-CodeIndent1"><a name="806546">  else if(url.substring(0, 6) == "https:"){</a></div>
      <div class="CO1-CodeIndent1"><a name="806547">    return "PROXY &lt;host&gt;:8080";</a></div>
      <div class="CO1-CodeIndent1"><a name="806548">  }</a></div>
      <div class="CO1-CodeIndent1"><a name="806549">  else{</a></div>
      <div class="CO1-CodeIndent1"><a name="806550">    return "DIRECT";</a></div>
      <div class="CO1-CodeIndent1"><a name="806551">  }</a></div>
      <div class="CO1-CodeIndent1"><a name="806552">}</a></div>
      <div class="I2-IndentedText2"><a name="823731">The template is for basic testing only. Administrators should modify the file as needed to suit their organization's needs.</a></div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">6.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806553">Click </a><span class="B-Bold">Apply</span>.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="S-Step_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="S-Step_inner" style="width: 18pt; white-space: nowrap">7.	</div>
            </td>
            <td width="100%">
              <div class="S-Step_inner"><a name="806554">Go to the </a><span class="B-Bold">Configure&nbsp;&gt; My Proxy&nbsp;&gt; Basic&nbsp;&gt; General</span> tab and click <span class="B-Bold">Restart</span>.</div>
            </td>
          </tr>
        </table>
      </div>
      <div class="B-Body"><a name="806555">Once the new PAC file is in place, configure users' browsers to use the PAC file. For example, if the PAC file is located on the proxy server with the hostname "proxy1" and Content Gateway uses the default port 8083 to serve the file, users' browsers must be configured to include the following URL in their proxy configuration settings:</a></div>
      <div class="CO1-CodeIndent1"><a name="806557">http://proxy1.company.com:8083/proxy.pac</a></div>
      <div class="B-Body"><a name="806560">The procedures for specifying the PAC file location vary among browsers. See </a><span class="LEM-LinkEmphasis"><a href="xplctpac.aspx" title="Using a PAC file">Using a PAC file</a></span> for more information.</div>
    </div>
    <!--googleoff: all-->
    <div class="library_search">
      <form class="support_search" action="/content/kb-search.aspx" method="get">
        <label></label>
        <label></label>
        <input type="text" name="q" value=" Search eSupport" onfocus="if (this.value == ' Search eSupport') {this.value = '';}" onblur="if (this.value == '') {this.value = ' Search eSupport';}"></input>
        <input type="submit" value=" "></input>
      </form>
    </div>
    <br class="clear" />
    <!-- New Navigation DIV -->
    <div class="TL_nav" style="text-align: left;">
      <table cellspacing="0" class="toolBarTable" summary="">
        <!-- End New Navigation DIV -->
        <tr>
          <td>
            <!-- New Go To TOC -->
            <a href="toc.aspx"><img src="images/toc.png" alt="Go to the table of contents" border="0" /></a>
            <!-- End Go To TOC -->
          </td>
          <td>
            <!-- New Previous -->
            <a href="ssl_revoc_info.aspx"><img src="images/prev.png" alt="Go to the previous page" border="0" /></a>
            <!-- End New Previous -->
          </td>
          <td>
            <!-- New Next (Active) -->
            <a href="c_incident.aspx"><img src="images/next.png" alt="Go to the next page" border="0" /></a>
            <!-- End New Next (Active) -->
          </td>
          <td>
            <!-- New PDF -->
            <a href="wcg_help.pdf"><img src="images/pdf.png" alt="View or print as PDF" border="0" /></a>
            <!-- End New PDF -->
          </td>
          <!--Start JR breadcrumbs -->
          <td width="20px"></td>
          <td>
            <div class="WebWorks_Breadcrumbs" style="text-align: left;">
              <a class="WebWorks_Breadcrumb_Link" href="ssl_intro.aspx">Working With Encrypted Data</a> &gt; Directing SSL traffic to Content Gateway via explicit proxy</div>
          </td>
          <!--End JR breadcrumbs -->
        </tr>
      </table>
    </div>
    <div class="extFooterContainer">
      <div class="extFooter">
        <div align="center">Copyright 2023 Forcepoint. All rights reserved.</div>
      </div>
    </div>
    <SCRIPT>
   function getFileName() {
      //this gets the full url
      var url = document.location.href;
      //this removes the anchor at the end, if there is one
      url = url.substring(0, (url.indexOf("#") == -1) ? url.length : url.indexOf("#"));
      //this removes the query after the file name, if there is one
      url = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
      //this removes everything before the last slash in the path
      url = url.substring(url.lastIndexOf("/") + 1, url.length);
      //return
      return url;
   }

   var url = document.URL;
   var Docname = getFileName()
   s.pageName = "enu:support:technical library:v85xwcg_help:" + Docname;
   s.prop1 = "enu:support";
   s.prop2 = "enu:support:technical library";
   s.channel = "support";
   // <!--
   s.server = "<%= System.Environment.MachineName %>";
   //--></SCRIPT>
    <script language="javascript1.1" type="text/javascript">
   /********Do Not alter below this line ***********/
   var s_code = s.t(); if (s_code) document.write(s_code)
   //--&gt;</script>
  </body>
  <!--"GENERALQUARTERSALLHANDSMANYOURSTATIONS"-->
</html>