<div dir="ltr">åÓÔØ ÎÁÐÉÓÁÎÎÙÊ ÍÎÏÊ ËÏÎÆÉÇ. èÏÔÅÌÏÓØ ÂÙ ×ÙÓÌÕÛÁÔØ ÐÒÅÄÌÏÖÅÎÉÑ ÐÏ ÅÇÏ ÏÐÔÉÍÉÚÁÃÉÉ É ÒÕÇÁÎØ, ÞÔÏ Ñ ÌÁÍÅÒ É ÎÁÄÏ ÄÅÌÁÔØ ×ÓÅ ÎÅ ÔÁË. :) ðÏÍÏÖÅÔÅ?<div><br></div><div><div>server {</div><div>š š listen š š š 80 default;</div>
<div>š š server_name š~^(?:www\.)*(?<HBW>.+)$;</div><div>š š server_name_in_redirect šoff;</div><div><br></div><div>š š access_log off;</div><div>š š error_log /var/log/nginx/proxy.log;</div><div><br></div><div>š š root /var/www/apps/application/current/public;</div>
<div><br></div><div>š š include /etc/nginx/banned_ip.conf;</div><div><br></div><div>š š location / {</div><div>š š š š try_files /maintenance.html $uri @apache;</div><div><br></div><div>š š š š location ~ ^(/Help|/pub) {</div>
<div>š š š š š š proxy_pass š š š š<a href="http://wiki.application.com">http://wiki.application.com</a>;</div><div>š š š š š š proxy_set_header X-Real-IP $remote_addr;</div><div>š š š š š š proxy_set_header Host $host;</div>
<div>š š š š š š proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div><div>š š š š }</div><div><br></div><div>š š š š location ~ /(assets|images/egg/sites) {</div><div>š š š š š š expires modified +30d;</div>
<div>š š š š š š access_log off;</div><div>š š š š š š try_files /maintenance.html $uri @apache;</div><div>š š š š }</div><div><br></div><div>š š š š location ~ ^/stylesheets/(.*)/(.*) {</div><div>š š š š š š rewrite /stylesheets/(.*) /assets/$1 last;</div>
<div>š š š š }</div><div><br></div><div>š š š š location ~ ^/(images|javascripts) {</div><div>š š š š š š rewrite /(images|javascripts)/(.*) /assets/$2 last;</div><div>š š š š }</div><div><br></div><div>š š š š location ~* \.(gif|jpg|png|ico)$ {</div>
<div>š š š š š š root /var/www/apps/application/current/eggs/$HBW;</div><div>š š š š š š access_log off;</div><div>š š š š š š expires modified +30d;</div><div>š š š š š š error_page 404 @apache;</div><div>š š š š }</div>
<div>š š }</div><div><br></div><div>š š location /crossdomain.xml$ {</div><div>š š š š root<span class="" style="white-space:pre"> </span>/var/www/crossdomains/$HBW;</div><div>š š }</div><div><br></div><div>š š location @apache {</div>
<div>š š š š proxy_pass š š š š <a href="http://localhost:8080">http://localhost:8080</a>;</div><div>š š š š include /etc/nginx/proxy.conf;</div><div>š š }</div><div>}<br></div><div><br></div><div style>óÐÁÓÉÂÏ ÚÁÒÁÎÅÅ. :)</div>
<div><br></div>-- <br>ó Õ×ÁÖÅÎÉÅÍ,<br>äÍÉÔÒÉÊ ìÑÌÀÅ×<br>ÔÅÌ. +380 (66) 532-29-62<br>÷ÓÅ ËÏÎÔÁËÔÙ ÄÌÑ Ó×ÑÚÉ ÎÁ <a href="http://lyalyuev.info" target="_blank">http://lyalyuev.info</a>
</div></div>