Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. server {
  2. listen 80;
  3. # server_name base.pe;
  4.  
  5. server_tokens off;
  6.  
  7. root /home/devstaff/webapps/;
  8.  
  9. location /blog {
  10. index index.php index.html index.htm;
  11. try_files $uri $uri/ /blog/index.php?q=$uri&$args;
  12. }
  13.  
  14. location ~ .+\.php$ {
  15. include /home/devstaff/opt/nginx/conf/fastcgi_params;
  16. fastcgi_pass unix:/var/run/php5-fpm.sock;
  17. fastcgi_index index.php;
  18. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. }
  20.  
  21. location ~ /\.ht {
  22. deny all;
  23. }
  24.  
  25. location /static_web {
  26. alias /home/devstaff/webapps/static_web/ ;
  27. expires 7d;
  28. }
  29.  
  30. location /media_web {
  31. alias /home/devstaff/webapps/media_web/ ;
  32. }
  33.  
  34. location = /favicon.ico {
  35. rewrite "/favicon.ico" "/static_web/img/favicon/favicon-256.png";
  36. expires 7d;
  37. }
  38.  
  39. location / {
  40. include uwsgi_params;
  41. uwsgi_pass unix:///home/devstaff/tmp/uwsgi.sock;
  42. }
  43.  
  44. error_page 500 502 503 504 /50x.html;
  45.  
  46. location = /50x.html {
  47. root html;
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement