Skip to content

Instantly share code, notes, and snippets.

@PS-WebAgentur
Created August 12, 2019 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PS-WebAgentur/d260e813c27f1cdb4b718fc27cbe00cc to your computer and use it in GitHub Desktop.
Save PS-WebAgentur/d260e813c27f1cdb4b718fc27cbe00cc to your computer and use it in GitHub Desktop.
if (!-e $request_filename) {
set $test P;
}
if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location)) {
set $test "${test}C";
}
if ($test = PC) {
rewrite ^/(.*)$ /index.php?$1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment