Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
bwx Posted August 6, 2015 Author Posted August 6, 2015 So I just transfered my perpetual license to IPS4 and can't get an answer for this simple question? Apache isn't the only web server in the world you know...
Lukeroge Posted August 7, 2015 Posted August 7, 2015 Here's the part to handle the URLs: # / location block location / { index index.php; # IPB rewrite try_files $uri $uri/ /index.php?$is_args$args; # redirect server error pages to the static page /50x.html # (not sure this is still needed) error_page 500 502 503 504 /error.html; }You may also want some other tweaks, like lettings browsers cache static content, and blocking dotfiles. # set expires header for static content and do not log location ~* \.(?:ico|css|js|gif|jpeg|jpg|png)$ { expires 30d; add_header Cache-Control "public"; add_header Vary Accept-Encoding; access_log off; } # block access to all .files location ~ /\. { deny all; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.