SatelliteWP / rocket-nginx

Rocket-Nginx is a Nginx configuration that makes WP-Rocket even faster by serving static pages directly without loading WordPress or PHP.
MIT License
579 stars 129 forks source link

Facing SET directive issue while testing Nginx File #172

Closed pantdeepakk5 closed 2 years ago

pantdeepakk5 commented 2 years ago

Hi Team

I performed the exact steps you described here but on testing the config file I am facing below issue.

nginx: [emerg] "set" directive is not allowed here in /etc/nginx/rocket-nginx/conf.d/defau lt.conf:19

Any help would be really appreciated.

Thanks

maximejobin commented 2 years ago

You probably did not include the file correctly at the right place.

1) Can you show your site's configuration?

2) Are you using Plesk? If so, many people have had problems configuring Rocket-Nginx because they do not understand how Plesk does its configuration. The problem is not with Rocket-Nginx per se but how and where to do it. Unfortunately, I do not have a Plesk environment so I cannot help.