I am having a problem getting osTicket v1.17.2 to work with an Apache 2.4 frontend load balancer (aka reverse proxy). I have osTicket working as it should on a backend server running Apache 2.4. I access it at http://support1.example.com:81/ and everything works.
Through the load balancer (https://support.example.com), the symptoms are that I cannot log into osTicket; neither the main page nor the SCP page. The pages look correct (css, images, etc), but nothing actually works.
The apache VirtualHost configuration on the backend server is:
<VirtualHost *:81>
DocumentRoot "/data/www/wcro/com/example/support/main"
ServerName support1.example.com:81
UseCanonicalName Off
UseCanonicalPhysicalPort Off
</VirtualHost>
The apache VirtualHost configuration on the load balancer is:
<VirtualHost *:443>
ServerName support.example.com:443
UseCanonicalName On
UseCanonicalPhysicalPort On
<Proxy balancer://support>
BalancerMember http://192.168.22.102:81
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass "/" "balancer://support/"
ProxyPassReverse "/" "balancer://support/"
</VirtualHost>
I use the above configuration with phpBB and Coppermine Photo Gallery and it works fine. It is a good baseline configuration. Was hoping it would work with osTicket as well.
I noticed a couple load balancer settings in osTicket's config file (ost-config.php) and adjusted them, but it didn't resolve the problem. Those settings are:
define('TRUSTED_PROXIES', '*');
define('LOCAL_NETWORKS', '127.0.0.0/24,192.168.0.0/16');
Any help is greatly appreciated.