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 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
gzip_disable "msie6"; upstream swooles { server 127.0.0.1:5300 weight=5 max_fails=3 fail_timeout=30s; keepalive 16; } server { listen 80; charset utf-8; index index.html index.php; server_name totok-cms.uwinltd.com; access_log logs/totok-cms.uwinltd.com_swoole_access.log main; error_log logs/totok-cms.uwinltd.com_swoole_error.log; root /opt/onemena/wwwroot/uwinltd.com/totok-cms.uwinltd.com/public; client_max_body_size 100m; location / { try_files $uri $uri/ @laravels; } location @laravels { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header Server-Protocol $server_protocol; proxy_set_header Server-Name $server_name; proxy_set_header Server-Addr $server_addr; proxy_set_header Server-Port $server_port; proxy_pass http://swooles; }
}
|