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

Nginx as reverse proxy and rocket-nginx #8

Closed
ghost opened this issue Oct 6, 2015 · 1 comment
Closed

Nginx as reverse proxy and rocket-nginx #8

ghost opened this issue Oct 6, 2015 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Oct 6, 2015

Hello Maxime,

Thanks very much for your code. It is in production with woocommerce and give to our shop the speed of a static website.

If I work with hiawatha web server for security purpose, this one can't serve directly files in wp-rocket cache folder without calling php-fpm process.
Same scenario with apache or other web server.

So, is it possible to use your script with nginx as reverse proxy ?

Best regards

@maximejobin
Copy link
Collaborator

Yes, it is totally possible.

That said, if you use Nginx as a reverse proxy, it is probably because you are using Apache. Therefore, you wouldn't use PHP-FPM, right ? Usually FPM is used when Nginx is used alone.

When you say "this one can't serve directly files in wp-rocket cache folder without calling php-fpm process.", does it mean they tweaked their configuration to serve every file (CSS, JS, images, ...) via FPM ? If that's the case, this adds a lot of unnecessary overhead to your server.

Please add more details.

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

No branches or pull requests

1 participant