Advertisement
nalipaz

Robots.txt redirect for aegir site-specific robots.txt

Jun 24th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. ###
  2. ### Redirect requests for /robots.txt
  3. ### First we check for existance of site-specific robots.txt
  4. ### If none, we redirect to default drupal robots.
  5. ###
  6. location = /robots.txt {
  7.   access_log    off;
  8.   log_not_found off;
  9.   try_files /sites/$server_name/robots.txt @robots;
  10. }
  11.  
  12. location @robots {
  13.   access_log    off;
  14.   log_not_found off;
  15.   try_files /robots.txt @cache;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement