Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root /var/www/test/html;
- index index.php;
- error_log /var/www/test/logs/error.log;
- client_max_body_size 5m;
- client_body_timeout 60;
- error_page 404 /404;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ {
- root /var/www/test/html;
- expires max;
Add Comment
Please, Sign In to add comment