Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.69 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. server {
  2.     listen 80;
  3.     server_name forum.tanlup.local;
  4.  
  5.     access_log /var/log/nginx/tanlup.forum.access.log;
  6.     error_log /var/log/nginx/tanlup.forum.error.log;
  7.  
  8.     rewrite_log on;
  9.     root /home/eber/Público/www/trych_forum;
  10.     index index.php index.html index.htm;
  11.  
  12.     location / {
  13.          try_files $uri $uri/ /index.php?q=$request_uri;
  14.     }
  15.  
  16.     # Pass the PHP scripts to FastCGI server
  17.     # listening on 127.0.0.1:9000
  18.     location ~ \.php$ {
  19.         fastcgi_pass 127.0.0.1:9000;
  20.         fastcgi_index index.php;
  21.         fastcgi_intercept_errors on;
  22.         #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23.         include fastcgi_params;
  24.     }
  25. }