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

Is possible to proxify external site with nginx like this:

server_name www.clientsite.com clientsite.com;

...

proxy_pass http://www.externalsite.com/;

This is the unique request of my client. He wants to do with caching for external links to your site for faster loading ... I have no ideas, I tried it and it works with some sites and some do not. Solutions?

share|improve this question
add comment

1 Answer

It should work that way. If your client needs caching, why not use a dedicated cache tool like varnish? It has a config language that is very powerful (when you finally understand it). The website is https://www.varnish-cache.org/

share|improve this answer
    
and varnish may make an exotic configuration as that required? Can you please show me an example? Thanks for response –  user1147636 Feb 14 '12 at 12:36
    
    
with nginx nothing? –  user1147636 Feb 14 '12 at 17:30
add comment

Your Answer

 
discard

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.