summaryrefslogtreecommitdiff
path: root/nginx/sites/vainsocial.bot.conf
blob: cfe5ed7c12de0c41f6baadc97ddef6470223d04b (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
30
31
32
33
34
35
36
37
server {

    listen 80;
    listen [::]:80;

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

    location /bridge {
        return 404;
    }

    location /ws {
        return 404;
    }

    location /stomp {
        return 404;
    }

    location /bot {
         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;
    }
}