rocket-nginx icon indicating copy to clipboard operation
rocket-nginx copied to clipboard

Configuration file test failed

Open cgiyo opened this issue 1 year ago • 1 comments

Hello. This is a question. I follow the instruction, but after alter the nginx.conf with include rocket-nginx/conf.d/default.conf; I got error like this :

nginx: [emerg] "set" directive is not allowed here in /etc/nginx/rocket-nginx/conf.d/default.conf:19
nginx: configuration file /etc/nginx/nginx.conf test failed

Am I doing wrong? I using WP Rocket version is 3.17.0.2 FYI, I don’t see any configuration file under /etc/nginx/sites-available folder, only in /etc/nginx/sites-enabled folder my configuration file.

Thank you in advance.

cgiyo avatar Oct 12 '24 15:10 cgiyo

Sorry for the delay, I never got the notification.

Usually, this error comes when you did not include the file properly (at the right place).

The latest version was tested properly and does not produce any error.

maximejobin avatar Jan 07 '25 22:01 maximejobin