apache2-httpd: alias for robots.txt v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 28 Apr 2019 16:03:30 +0200
branchv_0
changeset 22b2cb46ae50f7
parent 21 735961d9596e
child 23 1222714ae08f
apache2-httpd: alias for robots.txt
etc/apache2/git.conf
etc/apache2/hg.conf
     1.1 --- a/etc/apache2/git.conf	Wed Apr 24 17:29:04 2019 +0200
     1.2 +++ b/etc/apache2/git.conf	Sun Apr 28 16:03:30 2019 +0200
     1.3 @@ -5,6 +5,7 @@
     1.4  		ServerAdmin webmaster@localhost
     1.5  		DocumentRoot /var/www/html
     1.6  
     1.7 +		Alias /robots.txt /var/www/html/robots.txt
     1.8  		Alias /cgit-css "/usr/share/cgit/"
     1.9  		ScriptAlias / "/usr/lib/cgit/cgit.cgi/"
    1.10  		<Directory "/usr/share/cgit/">
     2.1 --- a/etc/apache2/hg.conf	Wed Apr 24 17:29:04 2019 +0200
     2.2 +++ b/etc/apache2/hg.conf	Sun Apr 28 16:03:30 2019 +0200
     2.3 @@ -5,6 +5,9 @@
     2.4  		ServerAdmin webmaster@localhost
     2.5  		DocumentRoot /var/www/html
     2.6  
     2.7 +		Alias /robots.txt /var/www/html/robots.txt
     2.8 +		ProxyPassMatch ^/robots.txt !
     2.9 +
    2.10  		ProxyPass "/" "http://localhost:16169/"
    2.11  		ProxyPassReverse "/" "http://localhost:16169/"
    2.12