I’ve been experimenting with this … I created an Ubuntu 20 server with Apache configured as a “reverse proxy.” Not really complicated - it took me a while because I’m not really a Linux guy and I’m learning as I go. This test was done with apps created with Xojo 2019R3.1 with build set to stand alone. I’m expecting the same behavior in 2020R1 but haven’t converted any of my apps yet.
First, create/build Xojo web apps, each app on a different port. I used 8080 and 8081. Make sure the executables are running on your server, I used a cron job running at startup for this.
Create a file in /etc/apache2/sites-enabled/
File name shouldn’t matter as anything in this folder is included to the main apache.conf
Content:
[code]<VirtualHost *:80>
ServerName www.mydomain1.com
ProxyPreserveHost on
ProxyRequests on
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<VirtualHost *:80>
ServerName www.myotherdomain.com
ProxyPreserveHost on
ProxyRequests on
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
[/code]
I like Apache because certbot can automatically configure it. Quick easy and free certificates and secure website.