We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c20e90 + 9b0fed6 commit e6541f2Copy full SHA for e6541f2
recipes/apache2.rb
@@ -18,6 +18,11 @@
18
action :nothing
19
end
20
21
+remote_file '/var/www/git.ruby-lang.org/robots.txt' do
22
+ mode '644'
23
+ owner 'root'
24
+end
25
+
26
%w[git svn].each do |subdomain|
27
remote_file "/etc/apache2/sites-available/#{subdomain}.ruby-lang.org.conf" do
28
mode '644'
recipes/files/etc/apache2/sites-available/git.ruby-lang.org.conf
@@ -19,6 +19,7 @@
TimeOut 300
Alias /cgit-css "/usr/share/cgit/"
+ Alias /robots.txt "/var/www/git.ruby-lang.org/robots.txt"
ScriptAlias /webhook "/home/git/git.ruby-lang.org/cgi-bin/webhook.cgi/"
<Directory "/home/git/git.ruby-lang.org/cgi-bin/">
recipes/files/var/www/git.ruby-lang.org/robots.txt
@@ -0,0 +1,2 @@
1
+User-agent: *
2
+Disallow: /
0 commit comments