summaryrefslogtreecommitdiff
path: root/nginx/sites/vainsocial.dev.conf
blob: 9e6155eff4d6538b6ad5f7928b79355fdda07932 (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 default_server;
    listen [::]:80 default_server;

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