Skip to main content

Custom Proxy: Technical Requirements, Limitations, and Troubleshooting

Learn the technical requirements for forwarding requests from a reverse proxy to Studio.Design and how to fix common issues, including the requirements that differ between the new and legacy infrastructure.

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-key header 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 to https://[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 /__island__/

If you forward only a subdirectory, also forward /__island__/ at the root of your domain

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].js are served with a Content-Type of application/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)

  1. Use curl to check that your proxy server can communicate with your Studio.Design site.

  2. Use a tool such as netstat to check the TCP connection on port 443 and that your firewall allows it.

  3. Check that the Host header is set to your Studio.Design origin domain.

  4. Check that x-studio-proxy-key contains your current proxy key.

  5. If you can't find the cause, temporarily raise the log level on your proxy to investigate.

Studio.Design returns 404 (communication is working)

  1. Check that requests are forwarded to https://[project-value].studio.site/[forwarded-directory].

  2. Check that the destination page exists in your Studio.Design project and is published.

  3. 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)

  1. Check that all files under /_nuxt/ are being forwarded.

  2. Check that files such as /_nuxt/entry.[hash].js are served with a Content-Type of application/javascript.

  3. Check that caching on your proxy is disabled.

"Load more" or site search doesn't work (new infrastructure)

  1. Check that query strings are forwarded without being dropped.

  2. Check that requests to /[page-path]/__load-more__ reach Studio.Design.

Lists from RSS or API integrations don't appear (new infrastructure)

  1. If you forward only a subdirectory, also forward /__island__/ at the root of your domain.

  2. Check that query strings are forwarded without being dropped.

Updated content doesn't appear

  1. Check that caching on your proxy is disabled.

  2. On the new infrastructure, if your proxy follows the s-maxage in Studio.Design's response, old content can remain for up to 24 hours.

Canonical or sitemap URLs differ from your published URL (new infrastructure)

  1. Check the domain name registered in [Settings] > [Advanced] > [Custom Proxy].

  2. 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)

  1. Check that cookies from the browser are forwarded to Studio.Design.

Related articles

nuxt

Did this answer your question?