issues
search
dirkaholic
/
vagrant-php-dev-box
PHP 7 vagrant development box with nginx, php-fpm, MySQL, Symfony, Laravel, ... on Ubuntu 16.04
477
stars
142
forks
source link
Sendfile, #10, prevent php files from being downloaded
#11
Closed
falexandrou
closed
11 years ago
falexandrou
commented
11 years ago
Fix second vagrant up that fails (by restricting to PHP 5.3 - added this as a hotfix for #10)
Prevents php files from being downloaded in nginx
Added
sendfile off;
in nginx config. This is an issue with vagrant shared folders which ends up serving corrupted files (in my case it was serving corrupted js/css files) -
http://docs-v1.vagrantup.com/v1/docs/config/vm/share_folder.html
falexandrou
commented
11 years ago
Please review & test.
Thank you
dirkaholic
commented
11 years ago
Thanks
sendfile off;
in nginx config. This is an issue with vagrant shared folders which ends up serving corrupted files (in my case it was serving corrupted js/css files) - http://docs-v1.vagrantup.com/v1/docs/config/vm/share_folder.html