喵爸爸的窩

You can check out any time you like ...

Home Archives
2016-05-04
Development

docker中的nginx

用 docker 掛 volumes 跑 nginx ,發現怎麼改檔案 nginx 都不更新...

本來以為是 docker 的問題,糾纏後似乎找到解答... nginx.conf 中如下設定就可以了:

sendfile  off;

據說是 OSX + VirtualBox (+docker) + sendfile 的問題:

  • Disable caching when serving static files with Nginx (for development)
  • VirtualBox Hates Sendfile
Share
Newer
蔡英文總統就職演說全文
Older
OSX下建立Ubuntu開機隨身碟

標籤雲

AJAX APP Android Browser CSS DELPHI DNS DRM Email Flask Handoff IDS IE IOS ISO JSON LoRa MSSQL MSWindows Mac MySQL OCR ODBC OSX PDF Phorum RFID S5 SPF SSL USB Ubuntu Version Control WIKI WordPress amazon android studio anti-spyware apache apche aws big5 bootstrap brew captcha car chrome course dreamhost encode fans firefox flash flex flickr font freebsd funny gallery github gmail google hardware hexo homebrew html icon imap jQuery java javascript lectures library linux mail microformat mp3 office passenger perl php player plugin postfix programming prototype.js rest rpm ruby s3 sasl2 sass scriptaculous security shared memory smb snort socket solaris sublimetext test themes trac url utf8 web services web slides wordpress plugins wordpress widgets yahoo youtube
© 2019 Filitov Chang
Powered by Hexo
Home Archives