Title / Description
Code user www-data; worker_processes 4; error_log /opt/nginx/logs/error.log; pid /var/run/nginx.pid; events { worker_connections 8192; use epoll; } http { passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11; passenger_ruby /usr/local/bin/ruby; (Du skal copy/paste de linjer ind ovenover som passenger fortæller dig) include /opt/nginx/conf/mime.types; # set a default type for the rare situation that # nothing matches from the mimie-type include default_type application/octet-stream; # This log format is compatible with any tool like awstats # that can parse standard apache logs. log_format main '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"' ; access_log /opt/nginx/logs/access.log; sendfile on; tcp_nopush on; keepalive_timeout 0; tcp_nodelay on; gzip on; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; gzip_http_version 1.0; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; include /opt/nginx/conf/sites-enabled/*; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code