Contact page, robots.txt and X-Robots-Tag in the local nginx
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
+1
-1
Submodule 50ohm updated: 874838f525...81edf08d8e
+1
-1
Submodule 50ohm-ansible updated: 0c1f44218b...ad00ac2218
+1
-1
Submodule 50ohm-contents-dl updated: f7fa8cfbc1...7c420b241b
@@ -65,4 +65,4 @@ $ git push # pushes the submodule commit
|
|||||||
|
|
||||||
## Deploying to a server
|
## Deploying to a server
|
||||||
|
|
||||||
See `50ohm-ansible/README.md`. `vars.yml` needs `site_admin_email` before `site.yml` will run.
|
See `50ohm-ansible/README.md`. `vars.yml` is filled in for 50ohm.se: point the DNS at the server, list the admins in `users.yml`, then run `site.yml`.
|
||||||
|
|||||||
@@ -10,4 +10,11 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Contact details: never indexed (the page also has a robots meta tag and is disallowed in robots.txt)
|
||||||
|
location = /kontakt.html {
|
||||||
|
add_header Cache-Control "no-store" always;
|
||||||
|
add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet" always;
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user