开发者

How to setup Lighttpd as a proxy for cross-site requests?

开发者 https://www.devze.com 2022-12-25 04:49 出处:网络
I want to setup my lighttpd server to proxy some requests (for ex. 开发者_运维问答RSS requests) to other domains so i can fetch data using javascript. For example i\'d like to fetch Atmo feed from int

I want to setup my lighttpd server to proxy some requests (for ex. 开发者_运维问答RSS requests) to other domains so i can fetch data using javascript. For example i'd like to fetch Atmo feed from internal Redmine (say http://code.internal.acme) to developer dashboard (say http://dashboard.internal.acme). I'd like to fetch it using JavaScript but i cant use something like JSONP and i don't want to use Flash for that.

Currently i have this in my lighttpd.conf

proxy.server = ( "/http-bind/" => ( ( "host" => "10.0.100.52", "port" => 5280 ) ) )

This way i can connect to our internal jabber server via Javascript. But i want more generic way... Something like

proxy.server = ( "/proxy/{1}" => ( ( "url" => {1} ) ) )


I found no way to di this. So i simply write "proxy" with Python for that.

Thanks everybody for your ideas...

0

精彩评论

暂无评论...
验证码 换一张
取 消