From e5b38b998202af30c7f4ddc02c157a4560c349d3 Mon Sep 17 00:00:00 2001 From: Kapil Viren Ahuja Date: Tue, 2 May 2017 19:53:39 +0530 Subject: /bot is now accessible via vainsocial.bot hostname. ONLY --- nginx/sites/vainsocial.bot.conf | 37 +++++++++++++++++++++++++++++++++++++ nginx/sites/vainsocial.dev.conf | 4 ++++ 2 files changed, 41 insertions(+) create mode 100644 nginx/sites/vainsocial.bot.conf 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; + } +} diff --git a/nginx/sites/vainsocial.dev.conf b/nginx/sites/vainsocial.dev.conf index 7760861..a2d84be 100644 --- a/nginx/sites/vainsocial.dev.conf +++ b/nginx/sites/vainsocial.dev.conf @@ -7,6 +7,10 @@ server { root /var/www/vainsocial/public; index index.php index.html index.htm; + location /bot { + return 404; + } + location /bridge { # proxy_pass http://192.168.1.34:8880/api; proxy_pass http://bridge/api; -- cgit v1.3.1