웹 사이트를위한 단순 / 최소한 browserconfig.xml은 무엇입니까?
Windows 8 및 고정과 관련하여 특별하거나 까다로운 작업을 수행하고 싶지 않습니다. IE가 browserconfig.xml
내 로그 파일에서 스크롤을 찾을 때 404 찾을 수 없음 메시지를보고 싶지 않습니다 .
browserconfig.xml
IE를 만족시키고 나중에 Window 8에 대한 더 나은 지원을 추가하기로 결정해야하는 좋은 자리 표시 자 역할을하는 내 루트에 넣을 수 있는 사소한 파일이 있습니까?
머리에 메타 코드를 추가했지만 여전히 browserconfig.xml 요청도 받고 있습니다.
그래서 가장 좋은 방법은 다음과 같습니다. 그들에 따르면 : http://msdn.microsoft.com/browserconfig.xml
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
</msapplication>
</browserconfig>
Microsoft의 MSDN 페이지 브라우저 구성 스키마 참조 에 샘플이 있습니다 .
browserconfig.xml
웹 서버의 루트 폴더에 파일을 넣습니다 .
다음을 포함 할 수도 있습니다.
<meta name="msapplication-config" content="none"/>
HTML에서 IE가이 파일을 찾지 못하도록합니다.
가장 쉬운 해결책은 실제로 공식 Microsoft Browserconfig.xml 파일 빌더를 사용하는 것입니다. http://www.buildmypinnedsite.com
전체 xml 파일을 빌드하고 단 3 단계로 로고의 모든 크기 이미지를받을 수 있습니다. 내 사이트를 위해 방금했고 2 분 밖에 걸리지 않았습니다.
전체 browserconfig.xml 파일을 생성하고 제목이 지정된 모든 이미지를 단일 zip 파일로 제공합니다.
1/8/2015 편집 : 방금 다른 옵션을 찾았습니다 : http://realfavicongenerator.net/
이 웹 사이트의 장점은 여러분의 browserconfig.xml과 모든 apple-touch- * 아이콘, favicon 등을 생성하는 것입니다. 기본적으로 모든 것을 한 번 생성하는 원 스톱 웹 사이트입니다.
meta
태그 추가는 작동하거나 작동하지 않을 수 있습니다. 이 태그를 추가했지만 browserconfig.xml
요청에 대해 항상 404 오류가 발생했습니다 . 결국 우리는 간단한 xml을하기로 결정했습니다.
우리 browserconfig.xml
는 이렇게 생겼고 기본적으로 4 개의 이미지가 어디에 있는지 알려줍니다.
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/mstile-70x70.png"/>
<square150x150logo src="/mstile-150x150.png"/>
<wide310x150logo src="/mstile-310x150.png"/>
<square310x310logo src="/mstile-310x310.png"/>
<TileColor>#8bc53f</TileColor>
<TileImage src="/mstile-150x150.png" />
</tile>
</msapplication>
</browserconfig>
그리고 이것을 HTML에 넣으십시오.
<meta name="msapplication-config" content="/browserconfig.xml" />
그리고 지금은 괜찮아
HTML에 추가하고 다음과 같이 구성을 "none"으로 설정할 수도 있습니다.
<meta name="msapplication-TileColor" content=" #009900" />
<meta name="msapplication-square70x70logo" content="images/smalltile.png" />
<meta name="msapplication-square150x150logo" content="images/mediumtile.png" />
<meta name="msapplication-wide310x150logo" content="images/widetile.png" />
<meta name="msapplication-square310x310logo" content="images/largetile.png" />
<meta name="msapplication-config" content="none"/>
출처 :
http://samples.msdn.microsoft.com/iedevcenter/PinnedSites/scenario1.html https://msdn.microsoft.com/library/dn320426
browserconfig.xml
404 오류로 로그 파일을 채우는 것을 방지하는 세 번째 방법이 있습니다. 서버에서 null 값 (444)을 반환하고 해당 위치에 대한 로깅을 해제 할 수 있습니다. 이것은 favicon.ico가 메타 헤드 태그와이를 호출하는 브라우저 (또한 404 생성)를 무시하고 동일한 작업을 수행하기 때문에 관련이 있습니다. 문제는이 원치 않는 파일보다 더 큽니다.
browser.xml의 로그에서 404 오류를 방지하는 구체적인 질문에 대해 NGINX의 경우 새 파일을 /etc/nginx/snippets/
만든 다음 서버 블록 내부의 #include
파일에 해당 파일을 만들 수 있습니다 /etc/nginx/sites-available/example.org
.
예 : /etc/nginx/snippets/block-known-errors.conf
내용은 다음과 같습니다.
location ~* /(favicon.ico|browserconfig.xml)$
{ access_log off; log_not_found off; return 444; }
그런 다음 구성에서 /etc/nginx/sites-available/example.org
다음을 추가합니다.
include /etc/nginx/snippets/block-known-errors.conf;
Note in the location specification in NGINX is using a regular expression and is case insensitive. And because it is a location
is must be inside of the server
specification.
In practice, we actually nest our includes in the /etc/nginx/snippets/
folder and have one global include and other includes for specific sites depending on security/technology requirements. This allows our endpoints to fix a global issue almost immediately by adding one file or editing an existing file to manage our logs.
There is only so much cruft you can see through with OSSEC and an ELK stack.
I am sure mod_rewrite in Apache could do this as well.
'Programming' 카테고리의 다른 글
Netbeans 성능을 향상시키는 방법은 무엇입니까? (0) | 2020.08.09 |
---|---|
PhoneGap Eclipse 문제-eglCodecCommon glUtilsParamSize : 알 수없는 매개 변수 오류 (0) | 2020.08.09 |
목록의 각 요소에 정수를 추가하는 방법은 무엇입니까? (0) | 2020.08.09 |
다른 div 내에서 div를 중앙에 어떻게 배치 할 수 있습니까? (0) | 2020.08.09 |
Ruby 지원 (+ ruby)으로 vim 설치 (0) | 2020.08.09 |