Hi everyone,
We’re trying to expose our Shopify store under a subpath of our main website using a reverse proxy, but we’re running into a 403 Forbidden issue and could use some guidance.
Goal
We want our shop to be accessible at:
https://www.example.com/nl/kopen
Instead of the default Shopify domain.
For testing, this is currently set up on a staging environment:
https://staging.example.com/nl/kopen
Which should proxy to our Shopify store at:
https://shop.example-shopify.com/nl
Current setup
We’re using Apache as a reverse proxy. The relevant configuration looks like this:
SSLProxyEngine On
<Location "/nl/kopen">
ProxyPreserveHost Off
ProxyPass "https://shop.example-shopify.com/nl"
ProxyPassReverse "https://shop.example-shopify.com/nl"
</Location>
Problem
When we visit:
https://staging.example.com/nl/kopen
We receive a 403 Forbidden response.
What we’re wondering
-
Is Shopify blocking reverse proxying under a subdirectory (rather than a subdomain)?
-
Does Shopify require specific headers (e.g.
Host,X-Forwarded-*) to be preserved? -
Is
ProxyPreserveHost Offcausing Shopify to reject the request? -
Are there known limitations with Shopify + Apache reverse proxy setups?
Notes
-
SSL is enabled and working
-
The Shopify store itself is reachable directly at
https://shop.example-shopify.com/nl -
This setup is for testing only at the moment
Any insight, best practices, or confirmation of whether this approach is supported by Shopify would be greatly appreciated.
Thanks in advance!