Не отображается миниатюра товара Nginx php5-fpm

Настройки nginx:

server {

listen 80;

listen 443 ssl;

keepalive_timeout 60;


ssl_certificate ***;

ssl_certificate_key ***;


ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;

ssl_ciphers "RC4:HIGH:!aNULL:!MD5:!kEDH";

add_header Strict-Transport-Security 'max-age=604800';


server_name ***;

root /var/www/***;

index index.php;


try_files $uri $uri/ /index.php?$query_string;


#location /index.php {

# include /etc/nginx/fastcgi_params;

# fastcgi_pass /var/run/php5-fpm.sock;

#}

#location /api.php {

# include /etc/nginx/fastcgi_params;

# fastcgi_pass /var/run/php5-fpm.sock;

#}


location ~ \.php$ {

fastcgi_pass unix:/var/run/php5-fpm.sock;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_param HTTPS on;

include fastcgi_params;

}


location ^~ /wa-data/protected/ {

#return 403;

#X-Accel-Redirect

internal;

}


location ~* ^/wa-(log|config|cache|system)/ {

return 403;

}


location ~* ^/wa-data/public/contacts/photo/[0-9]+/ {

root /var/www/***/;

access_log off;

expires 30d;

error_page 404 = @contacts_thumb;

}


location @contacts_thumb {

include /etc/nginx/fastcgi_params;

fastcgi_pass unix:/var/run/php5-fpm.sock;

fastcgi_param SCRIPT_NAME /wa-data/public/contacts/photo/thumb.php;

fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/contacts/photo/thumb.php;

}

# photos app

location ~* ^/wa-data/public/photos/[0-9]+/ {

access_log off;

expires 30d;

error_page 404 = @photos_thumb;

}


location @photos_thumb {

include /etc/nginx/fastcgi_params;

fastcgi_pass unix:/var/run/php5-fpm.sock;

fastcgi_param SCRIPT_NAME /wa-data/public/photos/thumb.php;

fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/photos/thumb.php;

}

# end photos app

# shop app

location ~* ^/wa-data/public/shop/products/[0-9]+/ {

access_log off;

expires 30d;

error_page 404 = @shop_thumb;

}

location @shop_thumb {

include /etc/nginx/fastcgi_params;

fastcgi_pass unix:/var/run/php5-fpm.sock;

fastcgi_param SCRIPT_NAME /wa-data/public/shop/products/thumb.php;

fastcgi_param SCRIPT_FILENAME $document_root/wa-data/public/shop/products/thumb.php;

}

# end shop app


location ~* ^.+\.(jpg|jpeg|gif|png|js|css)$ {

access_log off;

expires 30d;

}

2 ответа

Добавить ответ

Чтобы добавить комментарий, зарегистрируйтесь или войдите