diff options
| author | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-05-02 19:53:39 +0530 |
|---|---|---|
| committer | Kapil Viren Ahuja <k.v.ahuja@gmail.com> | 2017-05-02 19:53:39 +0530 |
| commit | e5b38b998202af30c7f4ddc02c157a4560c349d3 (patch) | |
| tree | dc05c3e5f3eeb494a552d231a73529ade9af5cf4 /nginx/sites/vainsocial.bot.conf | |
| parent | bfab74f0f9058ace0c67d7d08bbaef2507c750b6 (diff) | |
| download | vaindock-e5b38b998202af30c7f4ddc02c157a4560c349d3.tar.gz vaindock-e5b38b998202af30c7f4ddc02c157a4560c349d3.zip | |
/bot is now accessible via vainsocial.bot hostname. ONLY
Diffstat (limited to 'nginx/sites/vainsocial.bot.conf')
| -rw-r--r-- | nginx/sites/vainsocial.bot.conf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nginx/sites/vainsocial.bot.conf b/nginx/sites/vainsocial.bot.conf new file mode 100644 index 0000000..cfe5ed7 --- /dev/null +++ b/nginx/sites/vainsocial.bot.conf @@ -0,0 +1,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; + } +} |
