12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- user www-data;
- worker_cpu_affinity auto;
- worker_processes auto;
- error_log stderr error;
- #worker_rlimit_nofile 1024000;
- timer_resolution 1s;
- daemon off;
- pcre_jit on;
- events {
- worker_connections 100000;
- multi_accept off;
- }
- http {
- #include /etc/nginx/mime.types;
- access_log off;
- server_tokens off;
- msie_padding off;
- sendfile off;
- tcp_nopush off;
- tcp_nodelay on;
- keepalive_timeout 65s;
- keepalive_disable none;
- keepalive_requests 100000;
- php_ini_path /deploy/conf/php.ini;
- init_worker_by_php '
- require "app.php";
- ';
- server {
- listen *:8080 backlog=65535 reuseport;
- root /;
- index index.html;
- php_keepalive 256;
- location = /fortunes {
- content_by_php '
- fortune();
- ';
- }
- location = /db {
- content_by_php '
- db();
- ';
- }
- location /query {
- content_by_php '
- query();
- ';
- }
- location /update {
- content_by_php '
- update();
- ';
- }
- # location = /info {
- # add_header Content-Type text/html;
- # content_by_php '
- # phpinfo();
- # ';
- # }
- }
- }
|