drupal-with-nginx icon indicating copy to clipboard operation
drupal-with-nginx copied to clipboard

robotstxt module wrong output

Open rodrigoaguilera opened this issue 11 years ago • 4 comments
trafficstars

I suffer from the same commented here but I think is more correct to open a new issue.

https://github.com/perusio/drupal-with-nginx/issues/111#issuecomment-50380442

rodrigoaguilera avatar Jul 28 '14 19:07 rodrigoaguilera

I'm not sure but compressing pages through drupal in the performance config page is not necessary with this config and creates this kind of errors.

rodrigoaguilera avatar Jul 30 '14 19:07 rodrigoaguilera

@rodrigoaguilera I think it's a Content-Type thing. Try setting:

default_type 'text/plain';

inside the robots.txt location.

perusio avatar Jul 30 '14 22:07 perusio

It did work having that setting in nginx conf with page compressing activated on drupal but the pages are still served compressed with the drupal setting for compressing pages desactivated(and no errors on robotstxt module)

rodrigoaguilera avatar Jul 31 '14 06:07 rodrigoaguilera

Then set also inside the the robots.txt location: gzip off; ans see how it goes.

perusio avatar Jul 31 '14 10:07 perusio