Xibo custom instlation behind apache reverse proxy

Hi, I am trying to access xibo cms on an install on ubuntu 20.04 server via reverse proxy on apache.
I can’t get to the login page, always showing the web page not found. I need help.
Thanks.

I rewrite the question. I have made a mapping of all the cms resources but when I access it does not show the login page …
This is my virtualhost reverse proxy config:

            ProxyPass /xibo http://192.168.100.2/
            ProxyPassReverse /xibo http://192.168.100.2/
            ProxyPass /theme http://192.168.100.2/theme
            ProxyPassReverse /theme http://192.168.100.2/theme
            ProxyPass /api http://192.168.100.2/api
            ProxyPassReverse /api http://192.168.100.2/api
            ProxyPass /dist http://192.168.100.2:80/dist
            ProxyPassReverse /dist http://192.168.100.2:80/dist
            ProxyPass /maint http://192.168.100.2:80/maint
            ProxyPassReverse /maint http://192.168.100.2:80/maint

     when do I access the root directory /xibo, redirected to / I get the not found page error. I have inspected the error page and I have seen that it does not redirect to the login script.

Any ideas.
Thank you.

Antwoord op

Here is how I did it.

I my description I will change our real domain name to xyz.com.

I have an internal webserver that is a Ubuntu 20.04 server where I installed Virtualmin as my shared hosting environment.
After installing Virtualmin, I also installed ZeroMQ on the server.
sudo apt update
sudo apt install libzmq3-dev
sudo apt install php-zmq
The virtualmin environment is setup in such a way that if you access a virtualhost on port 80, it automatically does a rewrite to https (port 443)

I then setup a virtualhost called signage.xyz.com and made sure that internal DNS servers resolved it to the webserver address.

I then installed Xibo as described at Xibo on a Web server | Xibo Digital Signage , scheduled the cron job for XTR and configured XMR as described at https://xibo.org.uk/docs/setup/xmr-push-messaging
When you install, make sure you configure the /web folder of the xibo files to be your web root .

Before configuring the reversed proxy, I created a DNS record on an external DNS server for signage.xyz.com pointing to our external IP address. My router forwards ports 80 and 443 to the reversed proxy.
Just to be on the safe side, I also added an entry in the /etc/hosts file of the reversed proxy to point signage.xyz.com to the internal ip address of the webserver.

Last but not least, I added the vhost config to the reversed proxy as follows:

<VirtualHost *:80>
ServerName signage.xyz.com
RedirectPermanent / https://signage.xyz.com/
</ VirtualHost>
<VirtualHost *:443>
ServerName signage.xyz.com
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCertificateFile /etc/apache2/ssl/xyz.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/xyz.com.key
SSLCACertificateFile /etc/apache2/ssl/xyz.com_ca.crt
SSLProxyEngine on
ProxyPass / https://signage.xyz.com/
ProxyPassReverse / https://signage.xyz.com/
</ VirtualHost>

This works like a charm because the URL is the same, both internally and externally.

I have done this for over 40 sites running on the internal webserver, and also several applications running on Windows.

To summarize:
Make sure you properly resolve the URL of the Xibi site, both in your internal network as well as in the public internet.
Make sure you configure the /web folder of the xibo installation to be your web root.
Then use the vhost info above as a guideline to configure the reversed proxy.

Hope this helps.