Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. # the upstream component nginx needs to connect to
  2. upstream blog {
  3. server 0.0.0.0:80; # for a web port socket (we'll use this first)
  4. }
  5. # configuration of the server
  6. server {
  7. # the port your site will be served on
  8. listen 80 default_server;
  9. listen [::]:80 default_server ipv6only=on;
  10. # the domain name it will serve for
  11. server_name blog.mytoken.iknowapp.com;
  12. charset utf-8;
  13.  
  14. access_log /var/log/blog/access.log;
  15. error_log /var/log/blog/error.log;
  16.  
  17. # max upload size
  18. client_max_body_size 75M; # adjust to taste
  19.  
  20. # Finally, send all non-media requests to the Django server.
  21. location / { try_files $uri @blog; }
  22. location @blog{
  23. root /home/work/projects/blog/public/;
  24. index index.html index.htm;
  25. uwsgi_read_timeout 120s;
  26. uwsgi_send_timeout 120s;
  27. }
  28. }
  29.  
  30. server {
  31. # listen 8000 default_server;
  32. # listen [::]:8000 default_server;
  33. # server_name not;
  34. # root /usr/share/nginx/html;
  35.  
  36. # Load configuration files for the default server block.
  37. # include /etc/nginx/default.d/*.conf;
  38.  
  39. # location / {
  40. # }
  41.  
  42. error_page 404 /404.html;
  43. location = /40x.html {
  44. }
  45.  
  46. error_page 500 502 503 504 /50x.html;
  47. location = /50x.html {
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement