Transfering apache proxy settings to nginx

Hey!

I am moving from apache to nginx and i am having some problems with
proxy settings. Apache settings are:

ProxyRequests Off
ProxyPreserveHost Off

Order deny,allow
Allow from all

ProxyPass /dirpath http://sub.yourdomain.com/dirpath
ProxyPassReverse /dirpath http://sub.yourdomain.com/dirpath

  CacheEnable mem /dirpath/js
  MCacheSize 2048
  MCacheMaxObjectCount 100
  MCacheMinObjectSize 1
  MCacheMaxObjectSize 8192

I need these setting to load ajax file from another server and due to
cross-domain security restrictions proxy is the only option.

Thank you!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,181902,181902#msg-181902

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs