Skip to content
Snippets Groups Projects
Commit 78a21b88 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

archwiki: add robots.txt for mediawiki

parent 4bae82cc
No related branches found
No related tags found
No related merge requests found
User-agent: *
Disallow: /index.php?diff=
Disallow: /index.php?oldid=
Disallow: /index.php?title=Help
Disallow: /index.php?title=Image
Disallow: /index.php?title=MediaWiki
Disallow: /index.php?title=Special:
Disallow: /index.php?title=Template
Disallow: /skins/
......@@ -20,6 +20,9 @@
- reload nginx
tags: ['nginx']
- name: configure robots.txt
copy: src=robots.txt dest="{{ archwiki_dir }}/robots.txt" owner=root group=root mode=0644
- name: make nginx log dir
file: path=/var/log/nginx/{{ archwiki_domain }} state=directory owner=root group=root mode=0755
......
......@@ -38,6 +38,10 @@ server {
return 403;
}
location /robots.txt {
alias {{ archwiki_dir }}/robots.txt;
}
location ^~ /. {
log_not_found off;
deny all;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment