<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>One more thing to note...</p>
    <p>
      <blockquote type="cite">
        <div>
          <p class="MsoNormal">Set( $CommentAddress, '<a
              href="mailto:dev@example.com">dev@example.com</a>' );<o:p></o:p></p>
        </div>
        Set( $CorrespondAddress, '<a href="mailto:dev@example.com">dev@example.com</a>'
        );</blockquote>
    </p>
    <p>If these two are indeed the same, change the CommentAddress to
      something you won't use as much, like <a class="moz-txt-link-abbreviated" href="mailto:dev-comment@example.com">dev-comment@example.com</a>. If
      these are the same, RT may not know whether it should add a
      comment, or add correspondence to the ticket.</p>
    <div class="moz-signature">
      <p style="padding-bottom: 5px;">Best regards,<br>
        Steve</p>
      <br>
    </div>
    <div class="moz-cite-prefix">On 11/21/2016 09:20 AM, Peter Zillmann
      wrote:<br>
    </div>
    <blockquote
      cite="mid:79a53e0601bb4b699a973759bc42fa1b@KExchange02.knet.kzoo.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1604991915;
        mso-list-type:hybrid;
        mso-list-template-ids:-334829212 -932267222 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">On
            my test system I get the behavior you describe when
            $WebDomain does not match the URL in my browser.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Are
            you sure you’ve restarted your web server since making the
            change?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
            rt-users [<a class="moz-txt-link-freetext" href="mailto:rt-users-bounces@lists.bestpractical.com">mailto:rt-users-bounces@lists.bestpractical.com</a>]
            <b>On Behalf Of </b>Barton Chittenden<br>
            <b>Sent:</b> Monday, November 21, 2016 8:19 AM<br>
            <b>To:</b> rt-users<br>
            <b>Subject:</b> [rt-users] How do I set the RT hostname?<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">I'm in the process of setting up a new RT
            4.4 instance. I used the web installer, which generated the
            following RT-SiteConfig.pm:<o:p></o:p></p>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <div>
              <p class="MsoNormal">Set( $CommentAddress, '<a
                  moz-do-not-send="true" href="mailto:dev@example.com">dev@example.com</a>'
                );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $CorrespondAddress, '<a
                  moz-do-not-send="true" href="mailto:dev@example.com">dev@example.com</a>'
                );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $DatabaseHost, 'localhost' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $DatabaseName, 'rt4' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $DatabasePassword,
                'xxxxxxxxxxxxx' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $DatabasePort, '' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $DatabaseType, 'mysql' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $DatabaseUser, 'rt_user' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $Organization, '<a
                  moz-do-not-send="true" href="http://rt2.example.com">rt2.example.com</a>'
                );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $OwnerEmail, '<a
                  moz-do-not-send="true" href="mailto:dev@example.com">dev@example.com</a>'
                );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $SendmailPath,
                '/usr/sbin/sendmail' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $WebDomain, '<a
                  moz-do-not-send="true" href="http://rt2.example.com">rt2.example.com</a>'
                );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $WebPort, '80' );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Set( $rtname, '<a
                  moz-do-not-send="true" href="http://rt2.example.com">rt2.example.com</a>'
                );<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">1;<o:p></o:p></p>
            </div>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">{ I've substituted '<a
                moz-do-not-send="true" href="http://rt2.example.com">rt2.example.com</a>'
              for the actual FQDN of the machine that's hosting the
              instance }<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">When I tried to set up a new asset, I
              got the following error message:<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">RT has detected a possible cross-site
              request forgery for this request, because the Referrer
              header supplied by your browser (<a moz-do-not-send="true"
                href="http://rt2.example.com:80">rt2.example.com:80</a>)
              is not allowed by RT's configured hostname (<a
                moz-do-not-send="true" href="http://127.0.0.1:80">127.0.0.1:80</a>).<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">A bit of googling showed me how to set
              this in  RT-SiteConfig.pm:<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <div>
              <p class="MsoNormal">Set(@ReferrerWhitelist,
                qw(127.0.0.1:80));<o:p></o:p></p>
            </div>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">... that did disable the message, but
              why is the 'configured hostname' set to <a
                moz-do-not-send="true" href="http://127.0.0.1:80">127.0.0.1:80</a>,
              and how do I set it to the actual domain name of the
              machine?<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Thanks,<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">--Barton<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">---------
RT 4.4 and RTIR training sessions, and a new workshop day! <a class="moz-txt-link-freetext" href="https://bestpractical.com/training">https://bestpractical.com/training</a>
* Los Angeles - January 9-11 2017</pre>
    </blockquote>
    <br>
  </body>
</html>