forked from cwbit/cakephp-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
37 lines (29 loc) · 856 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# server {
# listen 80;
# server_name www.project.com;
# rewrite ^(.*) http://project.com$1 permanent;
# }
server {
listen 80;
server_name project.com;
client_max_body_size 108M;
access_log /var/www/project/logs/access.log;
error_log /var/www/project/logs/error.log;
root /var/www/project/webroot/;
index index.php;
# if (!-e $request_filename) {
# rewrite ^.*$ /index.php last;
# }
location / {
try_files $uri /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PHP_VALUE "error_log=/var/www/project/logs/php_errors.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}