Ubuntu Pastebin

Paste from Bruce_Dev at Sun, 28 Aug 2016 21:04:52 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
server {
	listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    server_name my-ip-address;

    root /var/www/laravel/public;
    index index.php index.html index.htm;

    location / {
            try_files $uri $uri/ index.php?$query_string;
    }

    location ~ \.php$ {
            try_files $uri /index.php =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
    }
}
Download as text