๋ชฉ์ฐจ
nginx woff mime type error ์ค์ ํด๊ฒฐ ๋ฐฉ๋ฒ Unexpected character in input: ์๋ฌ
2019/07/25 15:19:07 [error] 25892#24016: *313 FastCGI sent in stderr: "PHP Warning: Unexpected character in input: '' (ASCII=11) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Warning: Unexpected character in input: '' (ASCII=16) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Warning: Unexpected character in input: '' (ASCII=127) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Warning: Unexpected character in input: '' (ASCII=8) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Parse error: syntax error, unexpected '๏ฟฝ' (T_STRING), expecting ',' or ')' in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /assets/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "local-cocos.cjenm.com:9001", referrer: "http://local-cocos.cjenm.com:9001/main/"
2019/07/25 15:19:07 [error] 25892#24016: *313 FastCGI sent in stderr: "PHP Warning: Unexpected character in input: '' (ASCII=11) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Warning: Unexpected character in input: '' (ASCII=16) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Warning: Unexpected character in input: '' (ASCII=127) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Warning: Unexpected character in input: '' (ASCII=8) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100
PHP Parse error: syntax error, unexpected '๏ฟฝ' (T_STRING), expecting ',' or ')' in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /assets/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "local-cocos.cjenm.com:9001", referrer: "http://local-cocos.cjenm.com:9001/main/"
mime.types ํ์ผ์์ font/woff ๋์ ์ application/font-woff ๋ฅผ ์จ ์ค๋ค.
font/woff woff; font/woff2 woff2;
application/font-woff woff;
application/font-woff2 woff2;
nginx.conf ํ์ผ์์
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; }
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; }
woff,woff2๋ฅผ ์ถ๊ฐ ํด์ค๋ค.
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|woff|woff2|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; }
Nginx mime type ์ค์ ์ด ์๋ชป ๋๋ฉด, ํฌ๋กฌ์ด๋ ์คํ๋ผ ๋ฑ์ ๋ธ๋ผ์ฐ์ ์์๋ ํฐ ํฐ๊ฐ ์๋์ง๋ง, IE๋ ์ฃ์ง ๋ธ๋ผ์ฐ์ ์์๋ CSS๊ฐ ์ ํ์ ์ผ๋ก ๋จนํ์ ํ๋ฉด์ด ํํธ๋ฌ์ง๋ ์๋ฌ๊ฐ ๋์จ๋ค.
์์ปจ๋ฐ, input button์ value ๊ฐ์ ๋ง์ด๋์ค ์ธ๋ดํธ๋ก ๊ฐ๋ฆฌ๋ ค๊ณ ํด๋, overflow:hidden์ด ์๋จน๋๋ค๋๊ฐ ํด๋น ํด๋์ค๊ฐ ์ ์ฉ๋์ง ์๋ ๋ฌธ์ ๊ฐ ์๊ธด๋ค.
'Lect & Tip > Nginx & PHP 7.0' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ฆฌ๋ ์ค์์ Mattermost๋ฅผ HTTPS(SSL)๋ก ์ด์ํ๋ ๋ฐฉ๋ฒ (0) | 2024.08.15 |
---|
๋๊ธ