Hi,<div><br></div><div>I&#39;ve googled trying to find out the answers to my questions and a few remained unanswered / inconclusive.</div><div><br></div><div>I plan to replace my apache server with nginx.  I currently use:</div>
<div><br></div><div>a) mod_deflate to compress the pages</div><div>b) mod_expires to add expires headers to certain images</div><div>c) mod_rewrite to, well, rewrite the requests to a bootstrap index.php (Zend Framework)</div>
<div>d) support php</div><div>e) support for SSL</div><div>f) support for name based virtual hosts</div><div><br></div><div><br></div><div>I&#39;ve found that nginx has built-in support for compression, support for virtual servers (name based), SSL and can host php scripts.  But:</div>
<div>a) does it support similar configuration like the one below?</div><div><br></div><div><div>&lt;Directory &quot;/var/www/html&quot;&gt;</div><div>SetOutputFilter DEFLATE</div><div>BrowserMatch ^Mozilla/4 gzip-only-text/html</div>
<div>BrowserMatch ^Mozilla/4\.0[678] no-gzip</div><div>BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html</div><div>SetEnvIfNoCase Request_URI \</div><div>\.(?:gif|jpe?g|png|zip|exe|mp3)$ no-gzip dont-vary</div><div>Header append Vary User-Agent env=!dont-vary</div>
<div>&lt;/Directory&gt;</div></div><div><br></div><div>b) Are there any known limitations or disadvantages on hosting PHP with nginx? </div>