summaryrefslogtreecommitdiff
path: root/nginx/sites/vainsocial.dev.conf
blob: 57491a25f8bf9fd716b84793d6a2e2ee55d9ffc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
server {

    listen 80;
    listen [::]:80;

    server_name vainsocial.dev;
    root /var/www/vainsocial/public;
    index index.php index.html index.htm;

    location / {
         try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        try_files $uri /index.php =404;
        fastcgi_pass php-upstream;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}