# # any file or directory that is not absolute is relative to # /opt/schplurtz/nginx-1.2.3 # # Please refer to nginx.conf.default for more examples and possibilities # user www-data; # This is a small machine, and the website will be **very** low traffic. # One worker is enough worker_processes 1; # /var/log is on tmpfs. So log there instead in /opt/schplurtz/nginx-... error_log /var/log/nginx-error.log; # Use standard place for pid file pid /var/run/nginx.pid; events { worker_connections 1024; } http { root /www/mainsite; # no need to keep logs on such a small machine access_log off; include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name bloink.homelinux.net; #charset koi8-r; charset utf-8; # in case access_log is needed (debug ?), use this settings, because # /var/log is on tmpfs. So log there instead in /opt/schplurtz/nginx-... # access_log /var/log/nginx-http__access.log; # Block access to .htaccess files location ~ /\.ht { deny all; } #OFF cos in doku config#location / { #OFF cos in doku config# index index.html; #OFF cos in doku config#} # # INCLUDE THE VARIOUS DOKUS # include doku/stabledoku.conf; include doku/latestdw.conf; # # PHP CONFIG START # location ~ \.php$ { # Workaround PHP vulnerability: # http://forum.nginx.org/read.php?2,88845,page=3 try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; keepalive_timeout 0; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # Ceci doit ĂȘtre en accord avec les options de dĂ©marrage de php-fastcgi fastcgi_pass unix:/opt/schplurtz/nginx/fastcgi_temp/php-fcgi.sock; } # # PHP CONFIG END # #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }