<div dir="ltr">äÏÂÒÙÊ ÄÅÎØ<div>çÏÓÐÏÄÁ, ÐÏÄÓËÁÖÉÔÅ ÐÌÚ, ÜÔÏÔ ËÏÎÆÉÇ ÓÉÌØÎÏ ËÒÉ×ÏÊ, ÉÌÉ Ñ Ä×ÉÇÁÀÓØ × ÐÒÁ×ÉÌØÎÏÍ ÎÁÐÒÁ×ÌÅÎÉÉ?</div><div><div>server {</div><div>listen *:80;</div><div>server_name <a href="http://gametest.mydomain.com">gametest.mydomain.com</a>;</div>
<div>root /home/client/<a href="http://gametest.mydomain.com/htdocs">gametest.mydomain.com/htdocs</a>;</div><div>index šindex.php;</div><div><br></div><div>location /img {</div><div>š š try_files $uri $uri @img_fallback;</div>
<div><br></div><div>}</div><div><br></div><div>location @img_fallback {</div><div>š š š š fastcgi_pass <a href="http://127.0.0.1:9001">127.0.0.1:9001</a>;</div><div>š š š š fastcgi_index index.php;</div><div>š š š š fastcgi_param š PHPRC "/home/client/php";</div>
<div>š š š š fastcgi_param SCRIPT_FILENAME /home/client/<a href="http://gametest.mydomain.com/htdocs/img/index.php">gametest.mydomain.com/htdocs/img/index.php</a>;</div><div>š š š š include fastcgi_params;</div><div>}</div>
<div><br></div><div>location /editor {</div><div>š š try_files $uri $uri @editor_fallback;</div><div><br></div><div>}</div><div><br></div><div>location @editor_fallback {</div><div>š š š š fastcgi_pass <a href="http://127.0.0.1:9001">127.0.0.1:9001</a>;</div>
<div>š š š š fastcgi_index index.php;</div><div>š š š š fastcgi_param š PHPRC "/home/client/php";</div><div>š š š š fastcgi_param SCRIPT_FILENAME /home/client/<a href="http://gametest.mydomain.com/htdocs/editor/index.php">gametest.mydomain.com/htdocs/editor/index.php</a>;</div>
<div>š š š š include fastcgi_params;</div><div>}</div><div><br></div><div><br></div><div>location /game {</div><div>š š try_files $uri $uri @game_fallback;</div><div><br></div><div>}</div><div>location @game_fallback {</div>
<div>š š rewrite /game/([0-9]+\.html)$ /game/index.php?id=$1;</div><div><br></div><div>š š š š fastcgi_pass <a href="http://127.0.0.1:9001">127.0.0.1:9001</a>;</div><div>š š š š fastcgi_index index.php;</div><div>š š š š fastcgi_param š PHPRC "/home/client/php";</div>
<div>š š š š fastcgi_param SCRIPT_FILENAME /home/client/<a href="http://gametest.mydomain.com/htdocs/game/index.php">gametest.mydomain.com/htdocs/game/index.php</a>;</div><div>š š š š include fastcgi_params;</div><div>}</div>
<div><br></div><div><br></div><div>location ~ .php$ {</div><div>š š š š fastcgi_pass <a href="http://127.0.0.1:9001">127.0.0.1:9001</a>;</div><div>š š š š fastcgi_index index.php;</div><div>š š š š fastcgi_param š PHPRC "/home/client/php";</div>
<div>š š š š fastcgi_param SCRIPT_FILENAME /home/client/<a href="http://gametest.mydomain.com/htdocs$fastcgi_script_name">gametest.mydomain.com/htdocs$fastcgi_script_name</a>;</div><div>š š š š include fastcgi_params;</div>
<div>}</div><div><br></div><div>error_log /home/client/logs/gametest.mydomain.com-error.log;</div><div>access_log /home/client/logs/gametest.mydomain.com-access.log;</div><div><br></div><div>}</div></div><div><br></div></div>