29 lines
758 B
Plaintext
29 lines
758 B
Plaintext
upstream fastcgi_backend {
|
|
server lester.php.dev:9000;
|
|
}
|
|
|
|
server {
|
|
server_name lester.test;
|
|
root /home/www/website/www/public;
|
|
index index.php;
|
|
client_max_body_size 200M;
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass fastcgi_backend;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
fastcgi_intercept_errors on;
|
|
}
|
|
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
|
expires max;
|
|
log_not_found off;
|
|
}
|
|
|
|
access_log /home/www/website/log/access.log main;
|
|
error_log /home/www/website/log/error.log;
|
|
}
|