nginx return adds trailing slash to url

Alexander McNulty asked: This redirect adds a trailing slash which breaks the link I would like to spend people to, the exact code follows: server { listen 80; server_name graphwhy.org; return 301 https://www.surveymonkey.com/r/nationaldebt$request_uri; } currently when someone enters graphwhy.org into […]

Continue reading »

nginx not caching wordpress site

Qwerty.ie asked: I have a website set up to use nginx caching. Here are the details: fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m inactive=60m; fastcgi_cache_key “$scheme$request_method$host$request_uri”; server { listen 80 default_server; listen [::]:80 default_server; set $no_cache 0; if ($request_method = POST) { set […]

Continue reading »
1 2 3 306