Available on: Business Plus plan and above (legacy plans: Business plan and above)
This article covers the technical requirements for forwarding requests from a reverse proxy to Studio.Design, and how to fix common issues.
Some of the required settings differ between the new infrastructure and the legacy infrastructure. You can check which one your project uses in [Settings] > [General] > [Publishing Infrastructure].
This article covers general information that isn't tied to any specific software or service. Consultation on specific implementations such as Apache, NGINX, AWS, or Cloudflare is available on select Enterprise plans.
Point: For an overview of Custom Proxy and the setup steps, see Custom proxy overview and setup guide.
Technical requirements (new and legacy infrastructure)
Communication and network
Your proxy server can communicate with
https://[project-value].studio.site. Check this with a tool such as curl.TCP port 443 (HTTPS) is allowed through your firewall.
If needed, you can raise the log level on your proxy server to check details.
Headers
The Host header is set to your Studio.Design origin domain (xxx.studio.site).
The
x-studio-proxy-keyheader includes the proxy key issued by Studio.Design.You can find your proxy key in [Settings] > [Advanced] > [Custom Proxy].
Forwarding rules and paths
/[directory]is forwarded tohttps://[project-value].studio.site/[directory]without changing the path.The destination page exists in your Studio.Design project and is published.
Caching
Caching on your proxy is disabled for requests forwarded to Studio.Design, both during testing and in production.
If responses are cached, old content or error responses can remain.
Important: caching on the new infrastructure
On the new infrastructure, pages are cached by Studio.Design's CDN. The HTML of pages without password protection includes s-maxage=86400. If your proxy caches pages based on this value, updates may take up to 24 hours to appear.
Technical requirements for the new infrastructure
On the new infrastructure, you don't need to forward /_nuxt/. Instead, check the following.
Requirement | What to do | What happens if it isn't met |
Query strings | Forward them as they are, without dropping them | "Load more," site search, and filtering by URL query don't work |
Paths under | If you forward only a subdirectory, also forward | Lists from RSS or API integrations don't appear |
Custom Proxy domain name | Register the host name you actually publish on (including whether it has "www") | Canonical URLs, og:url, and sitemap URLs don't match your published URL |
Cookies | Forward them if you also use password protection | Visitors can't open the page even after entering the password |
"Load more" sends a request with a query string to a path under the page (/[page-path]/__load-more__). If the page itself is forwarded, you don't need to add this path.
Technical requirements for the legacy infrastructure
Static resources under
/_nuxt/, which are needed to display pages, must also be forwarded. This path can't be changed.Files such as
/_nuxt/entry.[hash].jsare served with a Content-Type ofapplication/javascript. Review your MIME type settings if needed.The hash values in
/_nuxt/change when Studio.Design is updated. Specify paths using wildcards or a similar method.Custom Proxy can't be used if a Nuxt.js site behind your proxy can't change its /_nuxt/ path. When multiple services use the same path, requests can't be routed to the right destination.
Important: when switching to the new infrastructure
As long as even one project on the legacy infrastructure remains on the same domain, keep your /_nuxt/ forwarding settings. Leave the destination set to that legacy-infrastructure project.
Troubleshooting
Requests aren't reaching Studio.Design (502 or 503 is returned)
Requests aren't reaching Studio.Design (502 or 503 is returned)
Use curl to check that your proxy server can communicate with your Studio.Design site.
Use a tool such as netstat to check the TCP connection on port 443 and that your firewall allows it.
Check that the Host header is set to your Studio.Design origin domain.
Check that
x-studio-proxy-keycontains your current proxy key.If you can't find the cause, temporarily raise the log level on your proxy to investigate.
Studio.Design returns 404 (communication is working)
Studio.Design returns 404 (communication is working)
Check that requests are forwarded to
https://[project-value].studio.site/[forwarded-directory].Check that the destination page exists in your Studio.Design project and is published.
Check that caching on your proxy is disabled. If it's enabled, error responses may remain.
The page is blank (200 is returned, legacy infrastructure)
The page is blank (200 is returned, legacy infrastructure)
Check that all files under
/_nuxt/are being forwarded.Check that files such as
/_nuxt/entry.[hash].jsare served with a Content-Type ofapplication/javascript.Check that caching on your proxy is disabled.
"Load more" or site search doesn't work (new infrastructure)
"Load more" or site search doesn't work (new infrastructure)
Check that query strings are forwarded without being dropped.
Check that requests to
/[page-path]/__load-more__reach Studio.Design.
Lists from RSS or API integrations don't appear (new infrastructure)
Lists from RSS or API integrations don't appear (new infrastructure)
If you forward only a subdirectory, also forward
/__island__/at the root of your domain.Check that query strings are forwarded without being dropped.
Updated content doesn't appear
Updated content doesn't appear
Check that caching on your proxy is disabled.
On the new infrastructure, if your proxy follows the
s-maxagein Studio.Design's response, old content can remain for up to 24 hours.
Canonical or sitemap URLs differ from your published URL (new infrastructure)
Canonical or sitemap URLs differ from your published URL (new infrastructure)
Check the domain name registered in [Settings] > [Advanced] > [Custom Proxy].
Make it match the host name you actually publish on, including whether it has "www".
Visitors can't open the page even after entering the password (new infrastructure)
Visitors can't open the page even after entering the password (new infrastructure)
Check that cookies from the browser are forwarded to Studio.Design.
Related articles
nuxt
