Hello,
I want to use a single web address to access 2 different instances of osTicket Agent backend (SCP) on my local network.
Here is my setup:

Web Server 1 (public facing):
https://link.website.com

which contains 2 alias:

https://link.website.com/support
https://link.website.com/support-archive

Here are my apache configuration file for the public webserver with Alias and reverse-proxy:

<VirtualHost 192.168.0.2:443>
  ServerName link.website.com
  SSLEngine on
  SSLCertificateFile /website.crt
  SSLCertificateChainFile /CA.crt
  SSLCertificateKeyFile /website.key
  ProxyVia On
  <Location "/support">
    ProxyPass "http://osticket.site.local/support/"
    ProxyPassReverse "http://osticket.site.local/support/"
  </Location>
  </VirtualHost>
  <Location "/support-archive">
    ProxyPass "http://osticket.site.local/support-archive/"
    ProxyPassReverse "http://osticket.site.local/support-archive/"
  </Location>
</VirtualHost>

osTicket Web Server 2 (internal - osTicket 1.15.1), containing 2 alias pointing to 2 different instances of osticket:
http://osticket.site.local/support/
http://osticket.site.local/support-archive/

Both servers run Linux Fedora 33 running Apache 2.4.46, PHP 7.4.14.

I want to use my primary web url “https://link.website.com” to access the 2 instances of osTicket on Web Server 2, i.e:
https://link.website.com/support maps to http://osticket.site.local/support/
https://link.website.com/support-archive maps to http://osticket.site.local/support-archive/

I can access the public osTicket page when I go to https://link.website.com/support
The problem is that when accessing: https://link.website.com/support/scp I get redirected to my main website https://link.website.com/

How can I solve this problem?
Thanks.
Visham.

Write a Reply...