Apache on windows

Hi Guys,
Have anyone hosted a web app with Apache. Right now I just have the desktop license and are thinking about purchasing the Xojo IDE Pro for web and IOS but my question will be the type of files it compiles when we do the build. Right now I have two websites running using Apache on a windows machine so I can setup Apache but was wondering if I can do the same setup with a xojo web app. I am asking because right now I can’t see what files gets generated. Is it like index.html for home page, etc.

Thanks

Xojo Web build output is a whole web server. When you run the executable, that serves the app and runs a webserver.

To use it in conjunction with Apache and your existing websites, set either the build flag or command line launch flag to use a port other than 80 and 443. Then configure a reverse proxy with Apache to forward requests through Apache to the Xojo Web app.

You can download a sample web application build from the documentation to test your server config

4 Likes

Also see Web Deployment Details in the docs.

Have a look into nginx. Allows you to do https if needed, and have multiple xojo web backends.

1 Like

Thank you guys. I will look at your recommendations.

Sorry to keep posting this but I am wondering if anyone has done a reverse proxy in apache to run multiple Xojo apps. I have apache running serving two websites right now setup in httpd-vhosts.conf to point to the different folders. I now have another domain that want to route port 80 and 443 to a xojo webapp server but I just can’t figure out how to set up apache. I searched for samples and just don’t understand.

P.S. Running on Windows

There isn’t a lot of advice floating around regarding Windows and Apache.

An MVP has blogged about Windows and IIS
Xojo Cloud uses Linux and Apache
I use Linux and niginx

At one point in the past, I had been using Linux and Apache; but when I really started digging into learning how to deploy myself I found configuring nginx to be so much easier.

It sounds like you understand the way Apache needs to be set up, so I won’t repeat the instructions. I’m not sure what to suggest. Unfortunately, I don’t have any examples to offer for Apache.


Alternatively, as a side note, there are two easy solutions to deploying web apps:

I’ve built and maintain an app called Lifeboat which makes the process of deploying a Xojo Web app to your own Linux server as easy as drag and drop. This quick (less than 5 mins) video shows how to deploy with Lifeboat. Lifeboat can run multiple web apps and multiple normal websites on the same server.

Xojo offers Xojo Cloud which is integrated with the IDE. While a little more expensive, some folks enjoy just how easy it is to deploy directly from the IDE.

2 Likes

Here’s an Apache reverse proxy example (config file) that I use on Ubuntu Linux to host multiple websites, including multiple Xojo web apps. Each Xojo app needs to be built to use a different port.

Change mydomain.com to yours, and change the port number from 8081 to match your app.

<VirtualHost *:80>
ServerName www.mydomain.com
ServerAlias mydomain.com
ProxyPreserveHost on
ProxyRequests on
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
</VirtualHost>

This takes care of port 80. On Ubuntu, I use Certbot to automatically setup a certificate and secure site.

The easy way to do all this is to use Xojo’s cloud or Tim’s Lifeboat on a Linux server. You can probably get it working on Windows but you’ll need to invest the time to learn about all the components. As Tim said, there isn’t much out there for Apache on Windows.

1 Like

Thank You guys,
Eric, that’s all I needed to know. I have configured Apache to start the Xojo app. Thank you very much!

Bonjour, en réponse au courrier Xojo à propos de l’ application Apache hébergée, et donc via notre rentrée commerciale pour WhatsApp et pour les pages d’ un catalogue à produits. Bonne lecture et bonne Xojo à tous et à toutes.