Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted by awkwardusername on September 24, 2015

Section 1 (Text)

server {
    listen 80;

    server_name sample.com;

    root /var/www/html/blog;

    index index.php;

    location /blog {
        root /var/www/html;
        index index.php;
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }


    location /cms {
        root /var/www/html/blog;
        index index.php;
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }

    location ~ \.php$ {
        root /var/www/html/blog;
        index index.php;
        try_files $uri $uri/ /index.php?q=$uri&$args;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;

        include                 fastcgi_params;
        fastcgi_index           index.php;
        fastcgi_param           SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param           SERVER_NAME $host;
        fastcgi_pass            unix:/var/run/php5-fpm.sock;
        fastcgi_read_timeout    720;
    }
}