Мне нужно установить magento 1.8 и 1.9 на ubuntu на сервере nginx. Я создал конфигурацию, но не работает нормально.Как настроить nginx с magento на ubuntu localhost
мне нужно создать один глобальные конфигурационные файлы для Magento 1.8, Magento 1,9
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location/{
try_files $uri $uri/ =404;
}
location /doc/ {
alias /usr/share/doc/;
autoindex on;
allow 127.0.0.1;
allow ::1;
deny all;
}
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
# With php5-fpm:
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
Какие сообщения об ошибках вы получаете в вашем браузере или журналах Nginx? – RustyFluff
Ошибка @RustyFluff 403 Запрещено nginx –