Guest User

Untitled

a guest
Jun 2nd, 2014
362
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×