Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,12 @@ server {
resolver 172.20.0.10;
server_name ~^(?<subdomain>[^.]+)\.preview\.docs\.apify\.com$;

# Block search indexing on every response from preview hostnames, including the
# apify.github.io proxy_passes (SDK/Client/CLI) that have no preview bucket and
# would otherwise serve production content under the preview hostname.
# `always` keeps the header on 4xx/5xx so error pages aren't indexed either.
add_header X-Robots-Tag "noindex, nofollow, noarchive" always;

# add trailing slashes to the root of GH pages docs
rewrite ^/api/client/js$ /api/client/js/ redirect;
rewrite ^/api/client/python$ /api/client/python/ redirect;
Expand Down
Loading