我正在考虑将以下字符串写入 nginx.conf
construct { <https://data.elsevier.com/lifescience/entity/pp/pk/pkassay/1007> ?p ?o} where {{<https://data.elsevier.com/lifescience/entity/pp/pk/pkassay/1007> ?p ?o}UNION{graph ?g {<https://data.elsevier.com/lifescience/entity/pp/pk/pkassay/1007> ?p ?o}}}
例如:
location /lifescience/ {
rewrite \/lifescience\/entity\/(.+)$ '/IntegrationHub/query?query=\"construct { <https://data.elsevier.com/lifescience/entity/$1> ?p ?o} where {{<https://data.elsevier.com/lifescience/entity/$1> ?p ?o}UNION{graph ?g {<https://data.elsevier.com/lifes\
cience/entity/$1> ?p ?o}}}\"' ;
proxy_pass http://localhost:xxxx;
}
nginx 接受我的重写规则,因为它是conf文件中的有效语法,但是当我点击它时,它说这是一个错误400的错误请求。
我想知道是否有人可以帮助我彻底摆脱这件事?