我正在尝试在端口3000上使用addblock 'Country(c), hasCountryCode(c:cc) -> string(cc).
Language(l), hasLanguageName(l:ln) -> string(ln).
isLarge(c) -> Country(c).
officiallyUses(c, l) -> Country(c), Language(l).
isMultilingual(c) <- officiallyUses(c, l1), officiallyUses(c, l2), l1 != l2.'
exec'
+isLarge("AU"), +isLarge("CA"), +isLarge("FR"), +isLarge("US").
+officiallyUses("AU", "English"), +officiallyUses("CA", "English").
+officiallyUses("CA", "French"), +officiallyUses("FR", "French").
+officiallyUses("LU", "French"), +officiallyUses("LU", "German").
+officiallyUses("LU", "Luxembourgish").
+officiallyUses("US", "English"), +officiallyUses("VA", "Italian"). '
Prerender
本地使用nginx。
我知道如果我通过网络服务器代理请求,所有相对网址都应该正常工作,但只有当我添加phantom.js
时,我才能访问/assets/*
中的部分文件nginx中的配置。
资产文件夹中存在的文件示例,但我无法通过浏览器访问Prerender phantomjs
文件:
icomoon-45c69cd6a8.woff2
错误:
ubuntu:~/Desktop/prerender$ ll /var/app/assets/fonts/icomoon-45c69cd6a8.woff2
-rwxrwxr-x 1 64116 Aug 20 12:45 /var/app/assets/fonts/icomoon-45c69cd6a8.woff2*
ubuntu:~/Desktop/prerender$ ll /var/app/assets/build/app/vendor-c3ca43539c.js
-rw-rw-r-- 1 969588 Jul 10 16:42 /var/app/assets/build/app/vendor-c3ca43539c.js
Nginx conf:
2017/08/24 15:02:40 [notice] 20882#20882: *1 "_escaped_fragment_" does not match "", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info"
2017/08/24 15:02:40 [notice] 20882#20882: *1 "Prerender" does not match "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info"
2017/08/24 15:02:40 [notice] 20882#20882: *1 "Chrome|chrome" matches "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info"
2017/08/24 15:02:40 [notice] 20882#20882: *1 "^(/home(/index)?|/index(.php)?)/?$" does not match "/assets/fonts/icomoon-45c69cd6a8.woff2", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info"
2017/08/24 15:02:40 [notice] 20882#20882: *1 "index/?$" does not match "/assets/fonts/icomoon-45c69cd6a8.woff2", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info"
2017/08/24 15:02:40 [notice] 20882#20882: *1 ".*" matches "/assets/fonts/icomoon-45c69cd6a8.woff2", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info"
2017/08/24 15:02:40 [notice] 20882#20882: *1 rewritten data: "/https://domain.info/assets/fonts/icomoon-45c69cd6a8.woff2", args: "", client: 127.0.0.1, server: domain.info, request: "GET /assets/fonts/icomoon-45c69cd6a8.woff2 HTTP/1.1", host: "domain.info