Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am loading images from an external site which I want to use in a 3D WebGL canvas. However this is not allowed due to origin.

The URL I am generating from the web page is as follows:


Now I want to proxy_pass I assume, to the URL included in the request.

location /somename/imagesproxy {
     proxy_pass  ...
     proxy_set_header  host localhost;

How do I get nginx to dynamically proxy to different URL's

share|improve this question
From what I have read nginx is not designed to be a forward proxy however I would like to use an nginx solution if possible. –  sphvn Jul 27 '12 at 13:04

1 Answer 1

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.