News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1299091677:v:use_geshi-1:v:type-c

Started by SleePy, Mar 02, 2011, 06:47 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SleePy

        #PasteBin!
        location /Pastebin/
        {
                try_files $uri @pastebin;
        }
        location @pastebin
        {
                rewrite "^/Pastebin/([0-9]+)/([A-Za-z0-9]{5})$" /Pastebin/index.php?view=$1&key=$2 last;
                rewrite ^/Pastebin/([0-9]+)/?$ /Pastebin/index.php?view=$1 last;
                rewrite ^/Pastebin/credits$ /Pastebin/index.php?credits last;
        }
No siggy! :D