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 | |
| parent | bfab74f0f9058ace0c67d7d08bbaef2507c750b6 (diff) | |
| download | vaindock-e5b38b998202af30c7f4ddc02c157a4560c349d3.tar.gz vaindock-e5b38b998202af30c7f4ddc02c157a4560c349d3.zip | |
/bot is now accessible via vainsocial.bot hostname. ONLY
| -rw-r--r-- | nginx/sites/vainsocial.bot.conf | 37 | ||||
| -rw-r--r-- | nginx/sites/vainsocial.dev.conf | 4 |
2 files changed, 41 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; + } +} 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; |
