Skip to content

Commit e6541f2

Browse files
authored
Merge pull request #94 from ruby/robots-txt
Added robots.txt
2 parents 5c20e90 + 9b0fed6 commit e6541f2

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Diff for: recipes/apache2.rb

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
action :nothing
1919
end
2020

21+
remote_file '/var/www/git.ruby-lang.org/robots.txt' do
22+
mode '644'
23+
owner 'root'
24+
end
25+
2126
%w[git svn].each do |subdomain|
2227
remote_file "/etc/apache2/sites-available/#{subdomain}.ruby-lang.org.conf" do
2328
mode '644'

Diff for: recipes/files/etc/apache2/sites-available/git.ruby-lang.org.conf

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
TimeOut 300
2020

2121
Alias /cgit-css "/usr/share/cgit/"
22+
Alias /robots.txt "/var/www/git.ruby-lang.org/robots.txt"
2223

2324
ScriptAlias /webhook "/home/git/git.ruby-lang.org/cgi-bin/webhook.cgi/"
2425
<Directory "/home/git/git.ruby-lang.org/cgi-bin/">

Diff for: recipes/files/var/www/git.ruby-lang.org/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /

0 commit comments

Comments
 (0)