| Nginx-ru mailing list archive (nginx-ru@sysoev.ru) [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Nginx + Drupal + модуль Flags
 
To: nginx-ru@xxxxxxxxxSubject: Nginx + Drupal + модуль FlagsFrom: "maxya" <nginx-forum@xxxxxxxx>Date: Tue, 18 Jan 2011 14:58:55 -0500Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;	d=mickey.jlkhosting.com; s=x; 	h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To;	bh=PCxJWAz5p2OzdOKbFk1n3bdPTl5MnH4VBYZgHFXNwPM=; 	b=PcTs76VXWLa+VXCIk4hFWJ+BhWElQpbxIhS8AJuwEOGeDk1tHITqB2AfTOoJ1p0eUUq6ZQ/ScLv/xfa12XStCAYWL5LJQ1Osj5qxPRamkBAtxVtIK7hkgzz5mntw4azg; 
 Здравствуйте! Помогите разобраться,
для друпала есть модуль "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 mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
 |