Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. MIX ~ :)
  2. # cat /etc/nginx/sites-enabled/cursocoex.com
  3. server {
  4. listen 188.165.192.181:80;
  5. server_name cdn.cursocoex.com;
  6. gzip_vary on;
  7. index index.html;
  8. charset utf-8;
  9. root /home/www/cursocoex.com/www;
  10.  
  11. location / {
  12. root /home/www/cursocoex.com/www;
  13. index index.html;
  14. }
  15. location ~ \.php(/|$) {
  16. deny all;
  17. }
  18. location ~* ^.+.(jpg|jpeg|gif|png|swf|ico|xml|zip|pdf)$ {
  19. access_log off;
  20. expires 31d;
  21. }
  22. location ~* ^.+.(html|htm)$ {
  23. expires 1d;
  24. }
  25. location ~* ^.+.(css|js)$ {
  26. expires 31d;
  27. }
  28. location ~* ^.+.(flv)$ {
  29. flv;
  30. }
  31. location ~* ^.+.(mp4)$ {
  32. mp4;
  33. }
  34. location ~* \.(eot|ttf|woff)$ {
  35. add_header Access-Control-Allow-Origin *;
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement