Hi.
Is it possible to have more than one webapp on same domain?
https://mydomain.com/app1 → calls app1 on 8080
https://mydomain.com/app2 → calls app2 on 8081
AND still have access to html, php, etc on mydomain.com/index.html
like this:
https://mydomain.com/ → html, php, js, css, etc
https://mydomain.com/app1/ → myapp1 with libraries
https://mydomain.com/app2/ → myapp2 with libraries
Thank you all in advance.
Alex
Yes, my app Lifeboat makes this super easy. You can host your regular website at https://mydomain.com with html, php, js, css, etc and then your Xojo Web apps are at https://app1.mydomain.com and https://app2.mydomain.com all on the same server.
3 Likes
The parameter for using a “folder” is called BaseURL.
“The application will use the specified folder/directory as the entry point to serve its web pages and resources, allowing the web application to coexist with other applications under the same domain.”
3 Likes
The normal functionality of Lifeboat is to use different subdomains for different applications. This is the backwards compatible, Web 1.0 and Web 2.0 supported method. The BaseURL parameter and functionality is new to newer versions of Web 2.0.
You can wire up a subdirectory path using your own reverse proxy as I just described the other day for custom upstream headers.
2 Likes
My hosting provider isn’t able to configure this.
What I need is:
“app1” to be called on port 8080 when it reaches the directory: alemac.com.br/app1
and
“app2” to be called on port 8081 when it reaches the directory: alemac.com.br/app1
(to avoid port conflicts).
Does anyone have an Apache configuration example to help me?
I think there’s an Apache config example buried somewhere in the forum, try using different search tools, I’m pretty sure it exists somewhere…
Yes, you can.
I highly recommend using Lifeboat, because it saves you from going through all the configuration hassle of your server.
You can use subdomains or domains wirh different paths.
2 Likes