Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem integrating with prerender.io (PHP lavarel prerender middleware) #7

Open
kaiwangjimmy opened this issue Dec 3, 2015 · 1 comment

Comments

@kaiwangjimmy
Copy link

Hi,

I am trying to set up prerender.io for our website. But I have problem integrating with service.prerender.io.
I am using PHP lavarel 4. I have already set up the PHP lavarel prerender middleware(version 1.0).

I also set up the code prerender server running as http://localhost:3000
The url of our web app is like: https://example.com/#!/support (we use hashbang #!)

When I test it locally, it works well. When I get access to https://localhost/?escaped_fragment=/support in browser, it returns static HTML. and the log in nodejs console looks good.

Then I change 'prerender_url' => 'https://service.prerender.io', and set up 'prerender_token' and deployed it to amazon web service.
The web server is behind load balancer(ELB).

The following url also works fine
https://service.prerender.io/https://example.com/?_escaped_fragment_=/support
I can get back static html.

But if I load in chrome
https://example.com/?_escaped_fragment_=/support

From Chrome's Network console, I see finally 502 http code returned and I cannot see the web page.
But in prerender.io web console, I can see that page is cached successfully and from Crawl Stats, I see that URL and the status Code is 200.
Thanks,

@kaiwangjimmy
Copy link
Author

The loading of https://example.com/?_escaped_fragment_=/support takes around 13 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant