Closed mSys-mislav closed 3 years ago
Can you include Rocket-Nginx just after the index
instruction to see if it makes a difference?
Don't forget to reload the configuration after that before you test.
We've tried it and it works. What/where is the catch? :)
The execution order is important. If the code it too low in your configuration, it is simply not executed.
Enjoy!
Describe the bug A clear and concise description of what the bug is.
I've installed rocket-nginx, included rocket-nginx/default.conf file in the vhost file and after restart nginx, index file (homepage) is getting downloaded. Funny thing is...e.g. /about-us page works. WP admin also works, but homepage, not.
Versions What version of Nginx are you using ? 1.14.2 What version of Rocket-Nginx are you using ? Latest What version of WP Rocket are you using ? 3.8.8 Are you using Nginx as a reverse proxy (with Apache for instance) ? Nginx+php-fpm (no apache)
To Reproduce Steps to reproduce the behaviour:
Did you activate the debug in Rocket-Nginx ? Please do and include any headers. Activating debug makes no difference, as I'm unable to open the homepage where this issue persist.
Make sure you include ALL Nginx configuration files you are using. Remove any sensitive information before submitting. ` server { listen *:80; listen [::]:80;
}
nginx.conf
user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf;
events { worker_connections 1024; multi_accept on; }
http {
map $remote_addr $ip_anonym1 { default 0.0.0; "~(?P(\d+).(\d+).(\d+)).\d+" $ip;
"~(?P[^:]+:[^:]+):" $ip;
}
map $remote_addr $ip_anonym2 { default .0; "~(?P(\d+).(\d+).(\d+)).\d+" .0;
"~(?P[^:]+:[^:]+):" ::;
}
map $ip_anonym1$ip_anonym2 $ip_anonymized { default 0.0.0.0; "~(?P.*)" $ip;
}
log_format anonymized '$ip_anonymized - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"';
}
`
Expected behavior A clear and concise description of what you expected to happen.
Website should load normally, without file download.
Additional context Add any other context about the problem here.
Let me know if anything else is needed.