Re: Magento конфиг

gf pro kak.serpom.po.yaitsam at gmail.com
Fri Jun 12 22:54:08 MSD 2009


Пропишите root в server.
> fastcgi_param SCRIPT_FILENAME /home/alex/www/server.com$
fastcgi_script_name;
Замените на fastcgi_param SCRIPT_FILENAME /home/alex/www/server.com
/путь/до/скрипта/который/обслуживает.php;


12 июня 2009 г. 19:33 пользователь Alexander <alexweb at gmail.com> написал:

> Добрый вечер всем.
>
>
> Итак, я снова возвращаюсь к вопросу настройки nginx и magento
> Пока что у меня работает нормально главная страница. При попытке обратиться
> у урлу любого товара вылетает ошибка No input file specified.
>
>
> В логах при этом следующее
> 2009/06/12 18:14:32 [error] 19531#0: *1 open()
> "/usr/local/nginx/html/Урл_Товара" failed (2: No such file or directory),
> client: 127.0.0.12, server: server.com, request: "GET /Урл_Товара
> HTTP/1.1", host: "server.com", referrer: "http://server.com/"
>
>
> Почему-то nginx ищет в дефолтной папке, а должен делать редирект на
> index.php
>
>
> Вот мой конфиг
>
>
> server {
> listen 127.0.0.12:80;
> server_name server.com;
>
>
> error_log /tmp/nginx.log debug;
>
>
> location / {
> index index.php;
> error_page 404 = @magento;
> }
>
>
> location @magento {
> include /etc/nginx/fastcgi_params;
> root /home/alex/www/server.com/;
> fastcgi_pass 127.0.0.12:8888;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME /home/alex/www/server.com
> $fastcgi_script_name;
> }
>
>
> location ~* \.(jpg|gif|png|css)$ {
> root /home/alex/www/server.com/;
> access_log off;
> expires 7d;
> }
>
> location ~* print.css$ {
> root /home/alex/www/server.com/;
> access_log off;
> gzip on;
> gzip_min_length 500;
> gzip_proxied expired no-cache no-store private auth;
> gzip_types text/plain application/xml text/css;
> expires 7d;
> }
>
> }
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090612/dc20dbe8/attachment.html>


More information about the nginx-ru mailing list