Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. root /usr/share/phpmyadmin;
  5.  
  6. index index.php;
  7.  
  8. client_max_body_size 1m;
  9. server_name admin.me;
  10.  
  11. error_log /var/log/nginx/admin.me;
  12.  
  13. location / {
  14. try_files $uri $uri/ /index.php?$query_string;
  15. }
  16.  
  17. location ~ \.(js|css|png|jpg|jpeg|gif|ico|html|woff|ttf|svg|eot|otf)$ {
  18. add_header "Access-Control-Allow-Origin" "*";
  19. expires 1M;
  20. access_log off;
  21. add_header Cache-Control "public";
  22. }
  23.  
  24. location ~ \.php$ {
  25. try_files $uri =404;
  26. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  27. fastcgi_pass unix:/var/run/php5-fpm.sock;
  28. fastcgi_index index.php;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. include fastcgi_params;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement