summaryrefslogtreecommitdiff
path: root/nginx/sites/vainsocial.bot.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/sites/vainsocial.bot.conf')
-rw-r--r--nginx/sites/vainsocial.bot.conf37
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;
+ }
+}