Nginx + Drupal + модуль Flags
maxya
nginx-forum на nginx.us
Вт Янв 18 22:58:55 MSK 2011
Здравствуйте! Помогите разобраться,
для друпала есть модуль "flags", пользуюсь
для "жалоб на комментарии", в админке
ссылки для удаления ненужных комментов
такого вида:
[code]
http://www.site.ru/flag/flag/abuse_comment/63191?destination=admin%2Fcontent%2Fflags%2Fabuse_comment&token=6bfe2b3969a0f25dusfdgx2345f046db18c
[/code]
[b]Но выкидывает ошибку 500[/b]
Помогите пожалуйста и конфигом.
Собственно-говоря, конфиг -
[code]
server {
listen 80;
server_name www.site.ru;
access_log /var/log/nginx/hudeem.access.log;
error_log /var/log/nginx/hudeem.error.log ;
root /var/www/site;
index index.php;
client_max_body_size 32M;
client_body_buffer_size 128k;
#charset utf-8;
gzip_static on;
gzip on;
error_page 403 = @drupal;
error_page 404 = @drupal;
error_page 405 = @drupal;
error_page 502 = @drupal;
error_page 503 = @drupal;
location ~*
.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(.php)?|xtmpl)$|^(code-style.pl|Entries.*|Repository|Root|Tag|Template)$
{
deny all;
log_not_found off;
access_log off;
}
# hide backup_migrate files
location ~* ^/files/backup_migrate {
deny all;
log_not_found off;
access_log off;
}
location ~ \..*/.*\.php$ {
return 403;
}
location / {
# This is cool because no php is touched for static
content
try_files $uri @drupal;
}
location @drupal {
# Some modules enforce no slash (/) at the end of the
URL
# Else this rewrite block wouldn't be needed
(GlobalRedirect)
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in
php.ini
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
#fastcgi_pass unix:/tmp/phpcgi.socket;
fastcgi_pass 127.0.0.1:9000;
}
# serve imagecache files directly or redirect to drupal if they do
not exist
location ~ ^/sites/.*/files/imagecache/ {
access_log off;
log_not_found off;
expires max;
try_files $uri @drupal;
}
#serve static files directly
location ~* \.(js|css|png|jpg|jpeg|gif|ico|htm|html)$ {
access_log off;
log_not_found off;
expires max;
}
[/code]
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,167335,167335#msg-167335
Подробная информация о списке рассылки nginx-ru