Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name ape.gpsfarma.com;
  5.  
  6. root /var/www/ape/current/code;
  7. index index.php;
  8.  
  9. access_log /var/log/nginx/beta.ape.gpsfarma.com-access.log;
  10. error_log /var/log/nginx/beta.ape.gpsfarma.com-error.log;
  11.  
  12. location / {
  13. try_files $uri $uri/ /index.php?$query_string;
  14. }
  15.  
  16. error_page 404 /404.html;
  17.  
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root /usr/share/nginx/www;
  21. }
  22.  
  23. location ~ \.php$ {
  24. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  25. fastcgi_pass unix:/var/run/php/gps_prod-php5.6-fpm.sock;
  26. fastcgi_index index.php;
  27. fastcgi_param APE_API_URL "http://beta.gpsfarma.com";
  28. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  29. include fastcgi_params;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement