user nobody; worker_processes 5; #error_log logs/error.log; #error_log logs/error.log debug; #error_log logs/error.log notice; error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; log_format timing '$remote_addr [$time_local] $request $status ' 'msec $msec upstream_response_time $upstream_response_time ' 'upstream_status $upstream_status'; access_log logs/access.log combined; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; # another virtual host using mix of IP-, name-, and port-based configuration # server { listen 8000; server_name _; client_max_body_size 15m; location /otrs-web { alias /home/otrs/download/otrs/otrs-2.2.4/var/httpd/htdocs; } location / { root /opt/otrs/var/httpd/htdocs/; # FCGI_SOCKET_PATH in the fcgi-process env fastcgi_pass unix:/home/otrs/sock/otrs.sock; fastcgi_index index.fpl; fastcgi_param SCRIPT_FILENAME /opt/otrs/bin/fcgi-bin$fastcgi_script_name; include fastcgi_params; # index index.html index.htm; } } }