From d5a336b603870f24fa7df8f75484fd14aa9da995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Tue, 20 Mar 2018 16:41:02 +0100 Subject: [PATCH] Added conf to serve robots.txt (refs #24934). --- 2.Common_services/5.Nginx/vhost_mediaserver-msuser.conf | 5 +++++ 2.Common_services/5.Nginx/vhost_msmonitor.conf | 2 ++ 2.Common_services/5.Nginx/vhost_skyreach.conf | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/2.Common_services/5.Nginx/vhost_mediaserver-msuser.conf b/2.Common_services/5.Nginx/vhost_mediaserver-msuser.conf index 3e3a31b6..c888525b 100644 --- a/2.Common_services/5.Nginx/vhost_mediaserver-msuser.conf +++ b/2.Common_services/5.Nginx/vhost_mediaserver-msuser.conf @@ -43,6 +43,11 @@ server { add_header Pragma public; add_header Cache-Control "public"; } + location /robots { + expires 30d; + add_header Pragma public; + add_header Cache-Control "public"; + } location /resources { location ~ \.ts$ { } diff --git a/2.Common_services/5.Nginx/vhost_msmonitor.conf b/2.Common_services/5.Nginx/vhost_msmonitor.conf index 5ffc7e49..a5f2ff72 100644 --- a/2.Common_services/5.Nginx/vhost_msmonitor.conf +++ b/2.Common_services/5.Nginx/vhost_msmonitor.conf @@ -23,6 +23,8 @@ server { } location /static { } + location /robots { + } location /wowza-manager/ { proxy_pass http://localhost:8088/; proxy_set_header X-Forwarded-Host $host; diff --git a/2.Common_services/5.Nginx/vhost_skyreach.conf b/2.Common_services/5.Nginx/vhost_skyreach.conf index ddaeb51a..d6f32eba 100644 --- a/2.Common_services/5.Nginx/vhost_skyreach.conf +++ b/2.Common_services/5.Nginx/vhost_skyreach.conf @@ -31,6 +31,12 @@ server { add_header Pragma public; add_header Cache-Control "public"; } + location /robots.txt { + alias /home/skyreach/htdocs/skyreach_site/static/robots.txt; + expires 30d; + add_header Pragma public; + add_header Cache-Control "public"; + } location /remote-event/ { proxy_pass http://127.0.0.1:6586/; -- GitLab