#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;
}