123456789101112131415161718192021222324252627282930313233343536373839404142 |
- user root;
- worker_processes auto;
- error_log stderr error;
- events {
- worker_connections 16384;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log off;
- server_tokens off;
- sendfile on;
- keepalive_timeout 65;
- upstream fastcgi_backend {
- server unix:/codeigniter/hhvm.sock;
- keepalive 50;
- }
- server {
- listen 8080;
- server_name localhost;
- root /codeigniter/;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$uri&$args;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass fastcgi_backend;
- fastcgi_keep_conn on;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- }
- }
|