2013-01-16 3 views
1

Magento ver. 1.7.0.2nginx + magento가 카테고리를 편집 할 수 없습니다.

문제

내가 편집 할 수 없어요/nginx를 인스턴스에서 실행되는 젠토에서 카테고리를 삭제합니다. 누구든지 이러한 문제가 발생하면 Google 검색은 작동하지 않는 솔루션으로 나타납니다.

Nginx의 구성

server { 

    listen  80; 
    server_name localhost; 
    client_max_body_size 20M; 

    access_log log/access.log main; 
    error_log log/error.log; 

    root /www/public_html; 

    index index.php index.html index.htm; 

    gzip on; 
    gzip_disable "msie6"; 

    gzip_comp_level 6; 
    gzip_min_length 1100; 
    gzip_buffers 16 8k; 
    gzip_proxied any; 
    gzip_types text/plain application/xml text/css text/js text/xml application/x-javascrip text/javascript application/json application/xml+rss; 

    location/{ 
     try_files $uri $uri/ @handler; 
     expires 30d; 
    } 

    include web_default_params; 

    location ^~ /includes/   { deny all; } 
    location ^~ /lib/    { deny all; } 
    location ^~ /media/downloadable/ { deny all; } 
    location ^~ /pkginfo/   { deny all; } 
    location ^~ /report/config.xml { deny all; } 
    location ^~ /var/    { deny all; } 

    location @handler { 
     rewrite ^(.*) /index.php?$1 last; 
    } 

    location ~ \.php$ { 
     include fastcgi_params; 
     fastcgi_pass backend-php; 
     fastcgi_split_path_info ^(.+\.php)(/.*)$; 
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
     fastcgi_param QUERY_STRING $query_string; 
     fastcgi_param PATH_INFO $fastcgi_script_name; 
     fastcgi_param HTTPS off; 
    } 
} 

답변

4

다음의 구성을 변경 한 후

location @handler { 
    rewrite ^(.*) /index.php?$1 last; 
} 

/의 JS/인덱스 등 다음 (## 순방향 경로

location @handler { 
     rewrite//index.php; 
    } 

및 포함 .php/x.js) 관련 핸들러에

location ~ \.php/ { 
     rewrite ^(.*\.php)/ $1 last; 
    } 

이 문제는

이 나를 위해 일
+0

을 사라! 고마워. – abnab

+0

는 저를 위해 작동합니다 !!! – codinglimo

관련 문제