2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ローカル環境で編集したjavascript/cssがIllegal Charcterになった

Posted at

#問題点

vagrantで構築したLAMP環境にホスト側のエディタで編集したjavascriptを転送した時に、Illegal Charcterエラーが発生して、正常に動作しない。
改行するだけでも発生した。

#解決策
ゲストマシンのhttpd.confに以下を追記。

EnableSendfile Off
EnableMMAP Off

nginxの場合はnginx.confで

sendfile off;

とすればいい。

参考。
https://cakebox-music.com/archives/772

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?