Advertisement
Guest User

Untitled

a guest
May 29th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. upstream production {
  2. server unix:///tmp/production.babeeplay.com.socket;
  3. }
  4.  
  5. server {
  6. listen 80 default_server;
  7. server_name www.playfulbee.com;
  8.  
  9. root /home/app/websites/playfulbee_blog/;
  10. index index.php index.html index.htm;
  11.  
  12. listen 443 ssl;
  13. ssl_certificate /etc/ssl/certs/www.playfulbee.com.pem;
  14. ssl_certificate_key /etc/ssl/private/www.playfulbee.com.key;
  15. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  16.  
  17. if ($scheme = http) {
  18. return 301 https://$server_name$request_uri;
  19. }
  20.  
  21. location /blog/ {
  22. try_files $uri $uri/ /blog/index.php?q=$uri&$args;
  23. }
  24.  
  25. location ~ \.php$ {
  26. try_files $uri =404;
  27. fastcgi_pass unix:/var/run/php5-fpm.sock;
  28. fastcgi_index index.php;
  29. include fastcgi_params;
  30. }
  31.  
  32. location / {
  33. proxy_pass $server_name:8001;
  34. proxy_set_header X-Forwarded-Host $server_name;
  35. proxy_set_header X-Real-IP $remote_addr;
  36. add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
  37. uwsgi_pass production;
  38. include uwsgi_params;
  39.  
  40. }
  41.  
  42. # location / {
  43. # uwsgi_pass production;
  44. # include uwsgi_params;
  45. # }
  46.  
  47. location /site_media/ {
  48. autoindex off;
  49. alias /home/app/websites/production.babeeplay.com/site_media/;
  50. }
  51.  
  52. }
  53.  
  54. server {
  55. server_name beta.playfulbee.com;
  56. rewrite ^ http://www.playfulbee.com$request_uri? permanent;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement