Welcome! Log In Create A New Profile

Advanced

Nginx + Drupal + модуль Flags

January 18, 2011 02:58PM
Здравствуйте! Помогите разобраться, для друпала есть модуль "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]
Subject Author Posted

Nginx + Drupal + модуль Flags

maxya January 18, 2011 02:58PM

Re: Nginx + Drupal + модуль Flags

Vladimir Rusinov January 18, 2011 03:20PM

Re: Nginx + Drupal + модуль Flags

maxya January 18, 2011 05:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready