Nginx Integration Guide
This guide explains how to integrate Index Render into your Nginx webserver for Single Page Applications (SPA), PHP applications, and Reverse Proxies.
Nginx Use Cases
- Single Page Application
- PHP Application
- Reverse Proxy
• Test configuration after every update to avoid downtime.
Single Page Application
Add a /index-renderio location block and replace YOUR_TOKEN with your Index Render token.
if ($index-render = 1) {
rewrite (.*) /index-renderio last;
}
PHP Application
location / {
if ($index-render = 1) {
rewrite (.*) /index-renderio last;
}
rewrite (.*) /index.php$1 last;
}
if ($index-render = 1) {
rewrite (.*) /index-renderio last;
}
Reverse Proxy
Add the /index-renderio location block and forward requests to Index Render service.
if ($index-render = 1) {
rewrite (.*) /index-renderio last;
}
Index Render Token Location
You can find your token under:
Security & Access → Index Render Token
Verify Your Installation
curl -A "googlebot" https://yourdomain.com
If Index Render headers are missing, the integration is not working correctly.
Getting an Error?
If you see "Index Render Integration Not Detected", refer to the troubleshooting documentation.
Expert Assistance
• Onboarding assistance
• Security assessment
Get Support
If you're still encountering issues after implementing Index Render, contact support for further assistance.