Advertisement
Guest User

Untitled

a guest
Feb 18th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. listen *:80;
  2. server_name gametest.mydomain.com;
  3. root /home/client/gametest.mydomain.com/htdocs;
  4. index index.php;
  5.  
  6. location /img {
  7. try_files $uri $uri @img_fallback;
  8.  
  9. }
  10.  
  11. location @img_fallback {
  12. fastcgi_pass 127.0.0.1:9001;
  13. fastcgi_index index.php;
  14. fastcgi_param PHPRC "/home/client/php";
  15. fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs/img/index.php;
  16. include fastcgi_params;
  17. }
  18.  
  19. location /editor {
  20. try_files $uri $uri @editor_fallback;
  21.  
  22. }
  23.  
  24. location @editor_fallback {
  25. fastcgi_pass 127.0.0.1:9001;
  26. fastcgi_index index.php;
  27. fastcgi_param PHPRC "/home/client/php";
  28. fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs/editor/index.php;
  29. include fastcgi_params;
  30. }
  31.  
  32.  
  33. location /game {
  34. try_files $uri $uri @game_fallback;
  35.  
  36. }
  37. location @game_fallback {
  38. rewrite /game/([0-9]+\.html)$ /game/index.php?id=$1;
  39. fastcgi_pass 127.0.0.1:9001;
  40. fastcgi_index index.php;
  41. fastcgi_param PHPRC "/home/client/php";
  42. fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs/game/index.php;
  43. include fastcgi_params;
  44. }
  45.  
  46.  
  47. location ~ .php$ {
  48. fastcgi_pass 127.0.0.1:9001;
  49. fastcgi_index index.php;
  50. fastcgi_param PHPRC "/home/client/php";
  51. fastcgi_param SCRIPT_FILENAME /home/client/gametest.mydomain.com/htdocs$fastcgi_script_name;
  52. include fastcgi_params;
  53. }
  54.  
  55. error_log /home/client/logs/gametest.mydomain.com-error.log;
  56. access_log /home/client/logs/gametest.mydomain.com-access.log;
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement