úÄÒÁ×ÓÔ×ÕÊÔÅ.<div>÷ÏÚÎÉËÌÁ ÚÁÄÁÞÁ ÓÌÅÄÕÀÝÅÇÏ ÐÌÁÎÁ:š</div><div>îÕÖÎÏ ÞÔÏÂÙ ÐÒÉ ÏÂÒÁÝÅÎÉÉ <a href="http://any_subdomain_name.domain.com">any_subdomain_name.domain.com</a> ÏÂÒÁÂÏÔÁÔØÓÑ ÆÁÊÌ(ÏÔËÒÙÔØÓÑ ÆÁÊÌ) <a href="http://domain.com/any_subdomain_name.php">domain.com/any_subdomain_name.php</a></div>
<div><br></div><div>æÁÊÌšany_subdomain_name.php ÎÁÈÏÄÉÔÓÑ ÐÏ ÐÕÔÉ /var/www/<a href="http://domain.com/web/any_subdomain_name.php">domain.com/web/any_subdomain_name.php</a></div><div><br></div><div>ôÏÔ ËÏÎÆÉÇ, ËÏÔÏÒÙÊ ÎÅ ÒÁÂÏÔÁÅÔ ÓÅÊÞÁÓ, ×ÙÇÌÑÄÉÔ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ:</div>
<div><br></div><div><div>server</div><div>š š {</div><div>š š š š root /var/www/<a href="http://domain.ru/web/">domain.ru/web/</a>;</div><div>š š š š index index.php index.html index.htm;</div><div>š š š š listen š 80;</div>
<div>š š š š server_name <a href="http://domain.ru">domain.ru</a>;</div><div><br></div><div>š š š š location = /favicon.ico</div><div>š š š š {</div><div>š š š š š š log_not_found off;</div><div>š š š š š š access_log off;</div>
<div>š š š š }</div><div><br></div><div>š š location = /robots.txt</div><div>š š š š {</div><div>š š š š š š allow all;</div><div>š š š š š š log_not_found off;</div><div>š š š š š š access_log off;</div><div>š š š š }</div>
<div>š š access_log /var/www/<a href="http://9ij.ru/log/access.log">9ij.ru/log/access.log</a>;</div><div>š š error_log /var/www/<a href="http://domain.ru/log/error.log">domain.ru/log/error.log</a>;</div><div><br></div><div>
š š location ~ \.php$</div><div>š š š š {</div><div>š š š š š š include /etc/nginx/fastcgi_params;</div><div>š š š š š š fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</div><div>š š š š š š fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div>
<div>š š š š }</div><div><br></div><div>š š location ~* \.(js|css|png|jpg|jpeg|gif|ico)$</div><div>š š š š {</div><div>š š š š š š expires max;</div><div>š š š š š š log_not_found off;</div><div>š š š š }</div><div><br></div>
<div>š š }</div><div>server {</div><div>š š š š server_name ^([a-z0-9\-]+\.)<a href="http://domain.ru">domain.ru</a>;</div><div>š š š š listen 80;</div><div>š š š š rewrite ^ http://domain.ru:80$1.php last;</div><div><br>
</div><div>location ~ \*$</div><div>š š š š {</div><div>š š š š š š include /etc/nginx/fastcgi_params;</div><div>š š š š š š fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</div><div>š š š š š š fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div>
<div>š š š š }</div><div><br></div><div>}</div></div><div><br></div><div><br clear="all">Best regards,<br>Roman Kozyrev<br>
</div>