worker_processes 1; error_log error.log; pid server.pid; worker_rlimit_nofile 8192; daemon off; events { worker_connections 4096; } http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] $status ' '"$request" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; sendfile on; tcp_nopush on; autoindex on; server { listen 49448; server_name localhost; access_log access.log main; root /home/me/src/LearningPhp/src/docroot/html; location / { index index.html index.txt index.php; } location ~ \.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:49449; } } } # vim:filetype=nginx