Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the upstream component nginx needs to connect to
- upstream blog {
- server 0.0.0.0:80; # for a web port socket (we'll use this first)
- }
- # configuration of the server
- server {
- # the port your site will be served on
- listen 80 default_server;
- listen [::]:80 default_server ipv6only=on;
- # the domain name it will serve for
- server_name blog.mytoken.iknowapp.com;
- charset utf-8;
- access_log /var/log/blog/access.log;
- error_log /var/log/blog/error.log;
- # max upload size
- client_max_body_size 75M; # adjust to taste
- # Finally, send all non-media requests to the Django server.
- location / { try_files $uri @blog; }
- location @blog{
- root /home/work/projects/blog/public/;
- index index.html index.htm;
- uwsgi_read_timeout 120s;
- uwsgi_send_timeout 120s;
- }
- }
- server {
- # listen 8000 default_server;
- # listen [::]:8000 default_server;
- # server_name not;
- # root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- # include /etc/nginx/default.d/*.conf;
- # location / {
- # }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement