Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 928 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 928 Bytes

prerender-nginx

This is the Prerender.io middleware configuration for an nginx server to allow Google (and other crawlers) to crawl your javascript website.

This file is based on this and it was updated following the recommendations in the comments

The nginx.conf in this repository is full file for reference.

Nginx config for

debugging

To debug the page sent to prerender.io use the following log format:

log_format prerender_debug '[$time_local] $remote_addr - $remote_user - $server_name user-agent: $http_user_agent prerender: $prerender: $request to: $upstream_addr upstream_response_time: $upstream_response_time msec $msec request_time $request_time';