Jeroen O.
Forum Replies Created
-
Hi,
Thx for your reply.
Here is the code as it is now.
https://www.dropbox.com/s/dutcgxwsl2dqcwq/5uUKEYSvtW1S1J6UT8KcOjcbDVSuLjrQ.png?dl=0
We should be able to fix this without Cloudflare.
Let me know what else we can do?
Thx,
JeroenHi Again,
The problem is not solved at this time.
This is the code but is not working. (Code is below message)
Do we need the change the order of the code?
The provider has done everything they can do.
What problems or disadvantages does the currently active cache setting have?
Thx,
Jeroen#Force https if ($scheme != "https") { return 301 https://$host$request_uri; } # Browser cache location ~* ^.+\.(css|js|gif|jpg|png|ico)$ { expires max; } # Rewrite if (!-e $request_filename) { rewrite ^(.+)$ /index.php?$query_string last; } #klantcontent location ~* \.(txt|xml|js)$ { expires 1y; } location ~* \.(css)$ { expires 1y; } location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$ { expires 1y; } location ~* \.(jpg|jpeg|png|gif|swf|webp)$ { expires 1y; } #klantcontent # Block abusive requests location ~ /\. { return 404; } location ~ ^/wp-includes/ { location ~ \.php$ { return 403; } try_files $uri $uri/ =404; expires 30d; } location ~ ^/wp-content/uploads/ { location ~ \.php$ { return 403; } try_files $uri $uri/ =404; expires 30d; }Hi,
The website runs on its own server with Plesk 18.0.35 on CentOS 7.9 with currently PHP 7.3.28 as active version.
Under water this works with httpd as web server, with nginx as reverse proxy server in between, these settings are made there.How can we fix this?
Thx,
JeroenHi Adam,
Thanks for your message.
We asked our hosting provider to add the code and they did.
Also they restarted NGINX.
The code used is in an earlier message above and you confirmed it to be correct.
What is the next step we can take to fix this?
Thx,
JeroenHi Patrick,
We placed the code in Plesk in de Additional Nginx settings.
Is this correct?
Thx,
JeroenHi Patrick,
I will check this with the hosting provider.
Will get back to you.
Bye,
JeroenHi Patrick,
Here is the current code:
#Force https if ($scheme != "https") { return 301 https://$host$request_uri; } # Browser cache location ~* ^.+\.(css|js|gif|jpg|png|ico)$ { expires max; } # Rewrite if (!-e $request_filename) { rewrite ^(.+)$ /index.php?$query_string last; } #klantcontent location ~* \.(txt|xml|js)$ { expires 1y; } location ~* \.(css)$ { expires 1y; } location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$ { expires 1y; } location ~* \.(jpg|jpeg|png|gif|swf|webp)$ { expires 1y; } #klantcontent # Block abusive requests location ~ /\. { return 404; } location ~ ^/wp-includes/ { location ~ \.php$ { return 403; } try_files $uri $uri/ =404; expires 30d; } location ~ ^/wp-content/uploads/ { location ~ \.php$ { return 403; } try_files $uri $uri/ =404; expires 30d; }Is this correct?
Thx,
JeroenHi Patrick,
It is not resolved yet.
I will get back to you.
Bye,
Jeroen