Welcome! Log In Create A New Profile

Advanced

Transfering apache proxy settings to nginx

March 10, 2011 04:01AM
Hey!

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

<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPreserveHost Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

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

<IfModule mod_cache.c>
<IfModule mod_mem_cache.c>
CacheEnable mem /dirpath/js
MCacheSize 2048
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 8192
</IfModule>
</IfModule>
</IfModule>

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!
Subject Author Posted

Transfering apache proxy settings to nginx

Paxxil March 10, 2011 04:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready