Enable nginx module on Laravel Homestead?

2019-09-01 10:09发布

How can I install and enable the file upload and upload progress module on nginx with the Laravel Homestead box on Vagrant?

2条回答
够拽才男人
2楼-- · 2019-09-01 10:54

I believe all you need to do, like it was mentioned above, is log in with ssh to your box and install the nginx-extras package. So:

  1. Got to your Homestead directory.
  2. Do 'vagrant ssh'
  3. Once in do 'sudo apt-get install nginx-extras'
  4. Restart nginx with 'sudo service nginx restart'
  5. Check for the module in the output of 'sudo nginx -V'. Messy but you should see 'nginx-upload-progress' somewhere near the end of the output.
查看更多
唯我独甜
3楼-- · 2019-09-01 11:02

You can do everything via ssh. Read more detail about using ssh in Homestead at here.

查看更多
登录 后发表回答