SHARE
TWEET

Untitled

a guest Jun 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nginx
  2. nginx-common
  3. nginx-full
  4. php5
  5. php5-cli
  6. php5-common
  7. php5-fpm
  8.      
  9. user = www-data
  10. group = www-data
  11. listen = /var/run/php5-fpm.sock
  12.      
  13. user www-data;
  14. worker_processes 3;
  15. events { worker_connections 1024; }
  16.      
  17. server {
  18.     listen       80;
  19.     server_name  localhost;
  20.     root         /extra/htdocs/default;
  21.     index        index.html index.php
  22.  
  23.     access_log   /extra/logs/default/access.log;
  24.     error_log    /extra/logs/default/error.log;
  25.  
  26.     location / {
  27.         try_files  $uri $uri/ /index.html;
  28.     }
  29.  
  30.     location ~ .php
  31.     {
  32.         fastcgi_split_path_info  ^(.+.php)(/.+)$;
  33.  
  34.         include fastcgi_params;
  35.  
  36.         fastcgi_index   index.php;
  37.         fastcgi_pass    unix:/var/run/php5-fpm.sock;
  38.         fastcgi_param   PATH_INFO         $fastcgi_path_info;
  39.         fastcgi_param   PATH_TRANSLATED   $document_root$fastcgi_path_info;
  40.         fastcgi_param   SCRIPT_FILENAME   $document_root$fastcgi_script_name;
  41.     }
  42. }
  43.      
  44. <?php
  45. phpinfo();
  46.      
  47. <ip> - - [17/Jul/2012:11:21:25 +0200] "GET /favicon.ico HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11"
  48. <ip> - - [17/Jul/2012:11:21:28 +0200] "GET /index.php HTTP/1.1" 403 46 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11"
  49. <ip> - - [17/Jul/2012:11:21:34 +0200] "-" 400 0 "-" "-"
  50.      
  51. [17-Jul-2012 10:44:14] NOTICE: fpm is running, pid 4969
  52. [17-Jul-2012 10:44:14] NOTICE: ready to handle connections
  53.      
  54. fastcgi_param   PATH_TRANSLATED     $document_root$fastcgi_path_info;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top