Closed (fixed)
Project:
RobotsTxt
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2011 at 05:18 UTC
Updated:
19 Oct 2012 at 08:11 UTC
I cannot make nginx work with this module.
I have tried a lot of nginx codes online, but none worked.
I get always 404 not found.
I had
location = /robots.txt {
access_log off;
try_files /sites/$host/files/robots.txt $uri @drupal;
}
I have also tried
try_files $uri @drupal;
Neither work.
What is your proposed code for nginx?
thanks
Comments
Comment #1
dropbydrop commentedI have the same with dev from february.
Comment #2
dropbydrop commentedI tried so many things. I think finally that this is a bug
Comment #3
dropbydrop commentedComment #4
Andreas Radloff commentedOld issue but you need to revert the order of try_files @drupal $uri like so: