Is it possible to install Bubble app on a subfolder?

I’ve a WordPress website, e.g. https://mywebsite.com

I would like my Bubble app on https://mywebsite.com/app instead of using a subdomain.

The app should not affect the WordPress site.

Is that possible?

P.S. ChatGPT says use Reverse Proxy - wondering if anyone has tried this or any other solution?

  • Your Bubble app is hosted normally on a subdomain, e.g. app.mywebsite.com

  • Your server (Apache, Nginx, Cloudflare, etc.) proxies traffic from /app on the main domain to the Bubble URL.

Bubble natively doesn’t allow this. You can try using a service like CoAlias to achieve this

Yes, the reverse proxy approach you mentioned is the way to go. Here is how it works:

  1. Host your Bubble app on a subdomain like app.mywebsite.com (this is required by Bubble)

  2. On your WordPress server, set up a reverse proxy rule that forwards requests from mywebsite.com - This website is for sale! - mywebsite Resources and Information. to your Bubble subdomain

If you are using Nginx, you would add something like this to your config:

location /app/ {
proxy_pass https://app.mywebsite.com/;
proxy_set_header Host app.mywebsite.com;
proxy_set_header X-Real-IP $remote_addr;
}

For Apache, you can use mod_proxy:

ProxyPass /app/ https://app.mywebsite.com/
ProxyPassReverse /app/ https://app.mywebsite.com/

If you are using Cloudflare, you can also set up Page Rules or Transform Rules to achieve similar results without touching your server config.

One thing to watch out for - make sure your Bubble app handles relative URLs properly, as some links might break when accessed through the proxy path.

1 Like