Advertisement
Guest User

Untitled

a guest
May 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name www.pipocapops.com.br pipocapops.com.br;
  4. return 301 https://www.pipocapops.com.br$request_uri;
  5. }
  6.  
  7. server{
  8. listen 443 ssl;
  9. ssl_certificate /etc/nginx/ssl/pipocapops_com_br/pipocapops_com_br.crt;
  10. ssl_certificate_key /etc/nginx/ssl/pipocapops_com_br/private-key.pem;
  11. root /usr/share/nginx/html/loja-00000/lojas/loja-00004;
  12. index index.php;
  13.  
  14. large_client_header_buffers 4 16k;
  15. server_name pipocapops.com.br www.pipocapops.com.br;
  16.  
  17.  
  18. location / {
  19. try_files $uri $uri/ /index.html;
  20. }
  21.  
  22. error_page 404 /404.html;
  23.  
  24. error_page 500 502 503 504 /50x.html;
  25. location = /50x.html {
  26. root /usr/share/nginx/html;
  27. }
  28.  
  29. location /. { ## Disable .htaccess and other hidden files
  30. return 404;
  31. }
  32.  
  33. location @handler { ## Magento uses a common front handler
  34. rewrite / /index.php;
  35. }
  36.  
  37. location ~ .php/
  38. { ## Forward paths like /js/index.php/x.js to relevant handler
  39. rewrite ^(.*.php)/ $1 last;
  40. }
  41.  
  42. location ~ \.php$ {
  43. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  44. fastcgi_pass unix:/var/run/php5-fpm.sock;
  45. fastcgi_index index.php;
  46. include fastcgi_params;
  47. }
  48.  
  49. location ~/\.ht {
  50. deny all;
  51. }
  52.  
  53. location ~ \.(?:jpg|jpeg|js|css|gif|png|swf|ico|pdf)$ {
  54. expires 7d;
  55. access_log off;
  56. add_header Pragma public;
  57. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  58. }
  59.  
  60.  
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement