Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name xxxxxxxxx;
- root /var/www/xxxxxxxxx/html;
- access_log /var/www/xxxxxxxxx/logs/access.log;
- error_log /var/www/xxxxxxxxx/logs/error.log;
- # underscores
- underscores_in_headers on;
- # upload
- client_body_temp_path /tmp;
- client_max_body_size 2G;
- client_body_in_file_only clean;
- # index
- location / {
- index index.php index.html index.htm;
- }
- # php
- location ~ ^(.*\.php).*$ {
- if (!-f $document_root$1) {
- return 404;
- }
- fastcgi_pass_request_body off;
- fastcgi_pass unix:/var/run/php-fpm/php5.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$1;
- fastcgi_param REQUEST_BODY_FILE $request_body_file;
- fastcgi_param XPWETISE $http_x_pwet_ise;
- include fastcgi_params;
- }
- }
Add Comment
Please, Sign In to add comment