Конфиг брал с офф вики
http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/configuring_nginx_for_magento
server {
listen 80;
server_name pf.local;
root /home/igor/Projects/Pа;
index index.php;
location / {
index index.html index.php;
try_files $uri $uri/ @handler;
}
location /app/ { deny all; }
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 /. {
return 404;
}
location @handler {
rewrite / /index.php;
}
location ~ .php/ {
rewrite ^(.*.php)/ $1 last;
}
location ~ .php$ {
if (!-e $request_filename) { rewrite / /index.php last; }
expires off; ## Do not cache dynamic content
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param MAGE_RUN_CODE default; ## Store code is defined in administration > Configuration > Manage Stores
fastcgi_param MAGE_RUN_TYPE store;
include fastcgi_params; ## See /etc/nginx/fastcgi_params
}
}
Сайт работает и все ок.
Но у меня есть еще один сайт (мультисайт), который я делал через Manage Stores в админке
Он лежит в папке pro и стучусь я к нему по урле pf.local/pro
Под апачем все ок и работало, а под nginx перекидывает на главную с сообщение об отсутствии страницы.
Что то не врублюсь в чем трабла может быть. На четырех машинах под апачем все ок.
Связка ubuntu 11.10 + nginx + php-fpm
Спасибо!

Вход
Регистрация
Помощь

