40 lines
995 B
Nginx Configuration File
40 lines
995 B
Nginx Configuration File
upstream fastcgi_backend {
|
|
server {UPSTREAM}:9000;
|
|
}
|
|
|
|
server {
|
|
server_name {SRVNAME};
|
|
root /home/www/website/app;
|
|
index index.php;
|
|
client_max_body_size 200M;
|
|
|
|
location = /favicon.ico {
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
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;
|
|
} |