File tree Expand file tree Collapse file tree 1 file changed +32
-20
lines changed
Expand file tree Collapse file tree 1 file changed +32
-20
lines changed Original file line number Diff line number Diff line change 1- server {
2- listen 80 ;
3- index index .php index .html;
4- error_log /var/log/nginx/error.log;
5- access_log /var/log/nginx/access.log;
6- root /var/www/public;
7- location ~ \.php$ {
8- try_files $uri =404 ;
9- fastcgi_split_path_info ^( .+\.php)( /.+) $;
10- fastcgi_pass app:9000 ;
11- fastcgi_index index .php;
12- include fastcgi_params;
13- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
14- fastcgi_param PATH_INFO $fastcgi_path_info ;
15- }
16- location / {
17- try_files $uri $uri / /index .php?$query_string ;
18- gzip_static on;
19- }
20- }
1+ user nginx;
2+ worker_processes auto;
3+
4+ error_log /var/log/nginx/error.log notice;
5+ pid /var/run/nginx.pid ;
6+
7+
8+ events {
9+ worker_connections 1024 ;
10+ }
11+
12+
13+ http {
14+ include /etc/nginx/mime.types ;
15+ default_type application/octet-stream ;
16+
17+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18+ '$status $body_bytes_sent "$http_referer" '
19+ '"$http_user_agent" "$http_x_forwarded_for"' ;
20+
21+ access_log /var/log/nginx/access.log main;
22+
23+ sendfile on;
24+ #tcp_nopush on;
25+
26+ keepalive_timeout 65 ;
27+
28+ #gzip on;
29+
30+ include /etc/nginx/conf.d/*.conf;
31+ include /etc/nginx/sites-available/*;
32+ }
You can’t perform that action at this time.
0 commit comments