Add robots.txt to koji web
This commit is contained in:
parent
82444a30be
commit
623be6ff73
3 changed files with 17 additions and 0 deletions
|
@ -6,6 +6,14 @@ KeepAlive On
|
|||
Alias /koji "/usr/share/koji-web/scripts/wsgi_publisher.py"
|
||||
#(configuration goes in /etc/kojiweb/web.conf)
|
||||
|
||||
Alias /robots.txt /var/www/html/robots.txt
|
||||
|
||||
<Directory "/var/www/html">
|
||||
Options None
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/share/koji-web/scripts/">
|
||||
Options ExecCGI
|
||||
SetHandler wsgi-script
|
||||
|
|
2
roles/koji_hub/files/robots.txt
Normal file
2
roles/koji_hub/files/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /
|
|
@ -171,6 +171,13 @@
|
|||
notify: restart httpd
|
||||
when: env != "staging"
|
||||
|
||||
- name: koji robots.txt config
|
||||
copy: src=robots.txt dest=/var/www/html/robots.txt
|
||||
tags:
|
||||
- config
|
||||
- koji_hub
|
||||
notify: restart httpd
|
||||
|
||||
- name: kojira log dir
|
||||
file: dest=/var/log/kojira owner=root group=root mode=0750 state=directory
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue