Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name whatever.com;
  4.  
  5. # static media
  6. location ^~ /media/ {
  7. autoindex on;
  8. root /var/www/proj;
  9. }
  10.  
  11. location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) {
  12. access_log off; # po co mi logi obrazków :)
  13. expires 30d;
  14. }
  15.  
  16. location / {
  17. # host and port to fastcgi server
  18. fastcgi_pass 127.0.0.1:8080;
  19. fastcgi_param SERVER_NAME $server_name;
  20. fastcgi_param SERVER_PORT $server_port;
  21. fastcgi_param SERVER_PROTOCOL $server_protocol;
  22. fastcgi_param PATH_INFO $fastcgi_script_name;
  23. fastcgi_param REQUEST_METHOD $request_method;
  24. fastcgi_param QUERY_STRING $query_string;
  25. fastcgi_param CONTENT_TYPE $content_type;
  26. fastcgi_param CONTENT_LENGTH $content_length;
  27. fastcgi_pass_header Authorization;
  28. fastcgi_intercept_errors off;
  29. }
  30.  
  31. access_log /var/www/proj/log/access.log;
  32. error_log /var/www/proj/log/error.log;
  33. }
Add Comment
Please, Sign In to add comment