nginxのdrupal用設定でcronが実行できてませんでしたので修正しました。
環境
- Arch: amd64
- OS(userland): NetBSD 5.1
- kernel: NetBSD 5.99.47
- nginx: 1.0.5
- PHP: 5.3.8
- MySQL: 5.5.15
- drupal: 6.22
nginxの設定
/usr/local/nginx/conf/drupal.example.net.conf
server {
listen 80;
server_name drupal.example.net;
access_log logs/drupal.example.net/access.log;
error_log logs/drupal.example.net/error.log notice;
root /home/somewhere/htdocs;
location / {
index index.php;
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1 last;
}
location ~* (settings\.php|\.(htaccess|engine|inc|info|install|module|profile|pl|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(Entries.*|Repository|Root|Tag|Template))$ {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_page 404 /index.php;
}
/usr/local/nginx/conf/nginx.conf
.
.
http {
.
.
include drupal.example.net.conf;
}