Skip to content

Instantly share code, notes, and snippets.

View PS-WebAgentur's full-sized avatar

Philipp Sobotta PS-WebAgentur

View GitHub Profile
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;
}
rewrite ^/(.*)$ /sub-dir/index.php?$1;