Streaming live at 10am (PST)

Webflow project mapped to an external domain's path with reverse proxy


#1

Is there a way to run a Webflow hosted project (say, “splash”) in an external domain in a path such as under “example.com/splash”? Note that “example.com” is a SaaS platform and we only want to host the static content with Webflow.

I’ve tried the following, unsuccessfully:
1 - Setup external splash.example.com with CNAME to ssl-proxy.webflow.com
2 - Publish the Webflow project to splash.example.com and example.com
3a - Setup nginx reverse proxy with proxy_pass splash.example.com to location “/splash”
3b - Setup nginx reverse proxy with proxy_pass mywebflow-project.webflow.io to location “/splash”

With 3a I get a 502 server error and with 3b the following error:
“Fastly error: unknown domain: example.com. Please check that this domain has been added to a service.”

There are two somewhat similar questions but I couldn’t really apply them in my scenario:


Many thanks in advance!


#2

Hey @martti

I think this thread includes a solution for you: Partial site hosting with reverse proxy (tl;dr, you need to make sure to modify the host header in nginx when you do the proxy pass)

One thing to note, proxying a webflow subdomain is not supported and will display webflow branding on the site. If you add a custom domain and reverse proxy that you will not see any branding.

Let me know if you have any other questions!