I have OTRS installed on a server on the network, and have seperate IIS server that is our web server. I have installed the Reverse Proxy & ARR stuff, and set up the reverse proxy
Now it looks to be working ok, links work, logins work, all good!
Only issue is, if I click on a link twice really quickly (it sends off 2 requests to OTRS before it has a chance to answer), IIS throws a 502 Bad Gateway error because supposedly Apache has thrown an error...
At the exact same time, Apache throws these errors and restarts a child process?
Code: Select all
ModPerl::Util::exit: (120000) exit was called at C:/PROGRA~2/OTRS/OTRS/Kernel/cpan-lib/CGI/Carp.pm line 561
[Wed Apr 06 15:58:22 2011] [notice] Parent: child process exited with status 255 -- Restarting.
[Wed Apr 06 15:58:24 2011] [notice] Server built: Oct 18 2010 01:58:12
[Wed Apr 06 15:58:24 2011] [notice] Parent: Created child process 2436
Scalars leaked: 1 Scalars leaked: 1 Scalars leaked: 1
[Wed Apr 06 15:58:28 2011] [notice] Child 2436: Child process is running
[Wed Apr 06 15:58:28 2011] [notice] Child 2436: Acquired the start mutex.
[Wed Apr 06 15:58:28 2011] [notice] Child 2436: Starting 64 worker threads.
[Wed Apr 06 15:58:28 2011] [notice] Child 2436: Starting thread to listen on port 80.
Now not knowing the damage this could cause, I commented out the block of code, and whola! IIS/Apache doesn't throw errors/quit when you double click a link within OTRS really fast.
The lines I commented out in the file (OTRS/Kernal/cpan-lib/CGI/Carp.pm) are
Code: Select all
if ($r->bytes_sent) {
$r->print($mess);
$mod_perl == 2 ? ModPerl::Util::exit(0) : $r->exit;
} else {
# MSIE won't display a custom 500 response unless it is >512 bytes!
if ($ENV{HTTP_USER_AGENT} =~ /MSIE/) {
$mess = "<!-- " . (' ' x 513) . " -->\n$mess";
}
$r->custom_response(500,$mess);
}
Cheers,
Michael