summaryrefslogtreecommitdiff
path: root/nginx/sites/vainsocial.dev.conf
blob: f32b01cf63a560a1962746ffa47bd04f72a99d69 (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
26
27
28
29
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 /bridge {
        proxy_pass http://192.168.1.34:8880/api;
    }

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