Код: Выделить всё
server {
charset utf-8;
client_max_body_size 128M;
listen 80; ## listen for ipv4
server_name localhost;
root /home/demo/public_html/test/public/frontend/web;
index index.php;
access_log /home/demo/public_html/test/log/access.log;
error_log /home/demo/public_html/test/log/error.log;
location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
try_files $uri =404;
}
location ~ /\.(ht|svn|git) {
deny all;
}
}
В файле /etc/nginx/sites-available/default поменял
Код: Выделить всё
server_name localhost1;