Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx
- nginx-common
- nginx-full
- php5
- php5-cli
- php5-common
- php5-fpm
- user = www-data
- group = www-data
- listen = /var/run/php5-fpm.sock
- user www-data;
- worker_processes 3;
- events { worker_connections 1024; }
- server {
- listen 80;
- server_name localhost;
- root /extra/htdocs/default;
- index index.html index.php
- access_log /extra/logs/default/access.log;
- error_log /extra/logs/default/error.log;
- location / {
- try_files $uri $uri/ /index.html;
- }
- location ~ .php
- {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- include fastcgi_params;
- fastcgi_index index.php;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- <?php
- phpinfo();
- <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"
- <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"
- <ip> - - [17/Jul/2012:11:21:34 +0200] "-" 400 0 "-" "-"
- [17-Jul-2012 10:44:14] NOTICE: fpm is running, pid 4969
- [17-Jul-2012 10:44:14] NOTICE: ready to handle connections
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement