Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name example.com www.example.com;
- root /var/www/example.com/public;
- index index.php index.html index.htm;
- charset utf-8;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- client_max_body_size 100m;
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_intercept_errors off;
- fastcgi_buffer_size 16k;
- fastcgi_buffers 4 16k;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~ \.php$ {
- return 444;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement