快轉到主要內容

初識Well-Known URI

·268 字·1 分鐘
Y Cheung
作者
Y Cheung
Blogger, Programer & Traveler.

看NGINX配置SAMPLE時看到這樣一個BLOCK:

1# Allow "Well-Known URIs" as per RFC 5785
2    location ~* ^/.well-known/ {
3        allow all;
4    }

聯想到之前使用Let’s Encrypt SSL 證書的時候也有添加一個路徑配置是.well-known的,Y.Cheung 好奇這個路徑究竟有什麼用。

在「RFC5785」中描述如下:

A well-known URI is a URI [RFC3986] whose path component begins with the characters “/.well-known/”, and whose scheme is “HTTP”, “HTTPS”, or another scheme that has explicitly been specified to use well- known URIs.

Applications that wish to mint new well-known URIs MUST register them, following the procedures in Section 5.1.

For example, if an application registers the name ’example’, the corresponding well-known URI on ‘http://www. example .com/’ would be ‘http://www. example .com/.well-known/example’.

Registered names MUST conform to the segment-nz production in [RFC3986].

Note that this specification defines neither how to determine the authority to use for a particular context, nor the scope of the metadata discovered by dereferencing the well-known URI; both should be defined by the application itself.

Typically, a registration will reference a specification that defines the format and associated media type to be obtained by dereferencing the well-known URI.

相關文章

Facebook APP 权限审核遭拒

·113 字·1 分鐘
The user_groups permission is only approved for apps that let people use Facebook on platforms where Facebook is not already available. If you’re building an app on Android and iOS, for example, you won’t be approved for this permission. Web, Desktop and TV apps will also not be granted this permission. 被拒绝的详细说明,总之facebook就是不给你这个user_group权限啦 = 3 =

提交Facebook App Review

·255 字·1 分鐘
虽然之前提到的那个bug官方还没修复,不过先这样吧,先运行起来,噗噗~ 今天稍微做了一下样式化输出,然后限制输出500条信息,分页还没做(趴)。 因为要用到 user_groups 权限,所以审核时间要久一些,7个工作日.

FACEBOOK WEB APP 制作小记

·216 字·1 分鐘
需求就是生产力! ——by Y.Cheung 因为没找到好的工具,就开始自己动手丰衣足食了XDDDD 目前进度25%。 除了像获取用户个人公开资料之类的是不用什么特别的权限外,都要注意在login的时候指明获取相应的permission。比如: 1$login_url = $helper ->getLoginUrl(array('scope'=>'user_groups')); 对于stdClass Object可以用以下方法转化为array: 1$array = json_decode(json_encode($row), true); 对于4.0以上版本的FACEBOOK PHP SDK来说,可以直接使用 require_once('autoload.php'); 加载所有require的文件。