Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 2nd, 2014  |  syntax: None  |  size: 0.77 KB  |  views: 204  |  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.  
  3.  listen   80;
  4.  server_name adminer;
  5.  
  6.  index adminer-3.3.3.php;
  7.  set $root_path '/usr/share/webapps/adminer';
  8.  root $root_path;
  9.  
  10. try_files $uri $uri/ @rewrite;
  11.  
  12.  location @rewrite {
  13.      rewrite ^/(.*)$ /index.php?_url=/$1;
  14.  }
  15.  
  16.  location ~ \.php {
  17.      fastcgi_pass unix:/run/php5-fpm.sock;
  18.      fastcgi_index /adminer-3.3.3.php;
  19.  
  20.      include /etc/nginx/fastcgi_params;
  21.  
  22.      fastcgi_split_path_info       ^(.+\.php)(/.+)$;
  23.      fastcgi_param PATH_INFO       $fastcgi_path_info;
  24.      fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  25.      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26.  }
  27.  
  28.  location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
  29.      root $root_path;
  30.  }
  31.  
  32.  location ~ /\.ht {
  33.      deny all;
  34.  }
  35.  
  36. }
clone this paste RAW Paste Data