bwx Posted August 6, 2015 Share Posted August 6, 2015 Where can I find nginx rules for the latest IPS v4? Link to comment Share on other sites More sharing options...
bwx Posted August 6, 2015 Author Share 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... Link to comment Share on other sites More sharing options...
Lukeroge Posted August 7, 2015 Share 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; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.