nginx

記述例

location / {
       root   /usr/share/nginx/html;
       index  index.html index.htm;
       add_header P3P "CP=\"UNI CUR OUR\"";       <==ここの部分が追加される。
   }

結果

$ curl --head http://inamuu.com/hoge.html
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 29 Jul 2014 10:56:38 GMT
Content-Type: text/html
Content-Length: 28762
Last-Modified: Wed, 25 Jun 2014 07:35:31 GMT
Connection: keep-alive
ETag: "53aa7bc3-705a"
P3P: CP="UNI CUR OUR"
Accept-Ranges: bytes

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11