Advertisement
Fany_VanDaal

Nastavení directivity na ngix serveru

Mar 12th, 2020
235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (!-e $request_filename) {
  2. set $test P;
  3. }
  4. if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location)) {
  5. set $test "${test}C";
  6. }
  7. if ($test = PC) {
  8. rewrite ^/(.*)$ /index.php?$1;
  9. }
Advertisement
RAW Paste Data Copied
Advertisement