2.3 Installation: Nginx
The framework is ready to be used with a normal Nginx installation, with basic url rewrite rules.
This is an example of virtual host configuration, which make use of our suggested directories structure (see chapter 3.1):
server {
listen 80;
server_name www.myproject.com myproject.com;
root /var/www/myproject.com/httpdocs;
client_max_body_size 10M;
include vhost_common;
location / {
try_files $uri /index.php?$args;
}
location ~* \.(jpg|gif|png|css|js|ico)$ {
try_files $uri =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param PHP_ADMIN_VALUE "session.save_path=/var/www/myproject.com/tmp";
fastcgi_param PHP_ADMIN_VALUE "upload_tmp_dir=/var/www/myproject.com/tmp";
}
}
Updated about 1 month ago