<div>I also had that issue when migrating to 3.6.3, using mod_rewrite to redirect http to https, and resolved it in the exact same manner. we didn't have this issue running the 3.2.x release, but i never bothered diffing to see when that change was added. i couldn't find any other way to fix it, and couldn't understand the need to explicitly set the server port env variable anyways, so i just called it "fixed" and moved on to my next problem :). The only difference is that in my config, I set $WebBaseURL to the non-https URL, since we've no need for SSL when accessing RT from inside the private network.
<br><br> </div>
<div><span class="gmail_quote">On 5/15/07, <b class="gmail_sendername">Robert Long</b> <<a href="mailto:rlong@bluegecko.net">rlong@bluegecko.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">We ran into that problem as well and we fixed it via this hackish-ness:<br><br>in RT/Interface/Web.pm . At around line 194 you will see something that
<br>looks like this:<br><br> if ($uri->host eq $server_uri->host &<br> $uri->port eq $server_uri->port) {<br> $uri->host($ENV{'HTTP_HOST'});<br> # $uri->port($ENV{'SERVER_PORT'});
<br> }<br><br>Make sure that "$uri->port($ENV{'SERVER_PORT'});" is commented out.<br><br>If you look at what the webclient is being told to access, it ends up<br>being something like "https://<yoursite>:80"- which fails. I doubt this
<br>is the correct way to fix this problem, but after it started working we<br>kinda lost interest ...<br><br>.r'<br><br><br>Petr Grolmus wrote:<br>> Hello,<br>><br>> I have got a problem with RT runnig simultaneously on http and https ports.
<br>> On the https port we are using WebAuth authentication for internal users,<br>> whereas on http port remains RT-authentication for external users.<br>><br>> With this setting in RT_SiteConfig.pm:<br>><br>
> Set($WebPath , "/rt");<br>> Set($WebBaseURL , "<a href="https://rtest2.zcu.cz">https://rtest2.zcu.cz</a>");<br>><br>> works everything fine on https, but when I click on several submit button
<br>> on http port - e.g. Search (main page) or Update Ticket (in Reply) -<br>> I always get:<br>><br>> "The connection to <a href="http://rtest2.zcu.cz:80">rtest2.zcu.cz:80</a> has terminated unexpectedly. Some
<br>> data may have been transferred."<br>><br>> It seems it try to communicate on http port with https protocol. When I<br>> switch settings to:<br>><br>> Set($WebBaseURL , "<a href="http://rtest2.zcu.cz">
http://rtest2.zcu.cz</a>");<br>><br>> then works everything fine on http port, whereas on https I get "Bad<br>> request" with click on the same submit buttons.<br>><br>> I'm using RT 3.6.1
from debian package (stable branch).<br>> Could someone help me to avoid this behavior?<br>><br>> Thanks,<br>> Petr Grolmus<br>> --------------------------------------------------------------------------<br>
> Petr Grolmus<br>><br>> Laboratory for Computer Science<br>> University of West Bohemia<br>> Univerzitni 20, 306 14 Pilsen Tel.: +420 377 632 851<br>> Czech Republic E-mail:
<a href="mailto:indy@civ.zcu.cz">indy@civ.zcu.cz</a><br>> --------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br>><br>> Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>> Commercial support: <a href="mailto:sales@bestpractical.com">
sales@bestpractical.com</a><br>><br>><br>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>> Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com
</a><br>><br><br>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a><br><br>
Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
<br>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>--<br>One way or another, everyone stops bleeding.