Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes 1;
- error_log /var/log/nginx/error.log warn;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- add_header Cache-Control no-cache;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- access_log /var/log/nginx/access.log main;
- sendfile on;
- #tcp_nopush on;
- keepalive_timeout 65;
- #gzip on;
- #include /etc/nginx/conf.d/*.conf;
- # the upstream component nginx needs to connect to
- upstream django {
- server unix:///home/aggosh/public_html/***/uwsgi_nginx.sock; # f$
- # server 127.0.0.1:8001; # for a web port socket (we'll use this fi$
- }
- # configuration of the server
- server {
- # the port your site will be served on
- listen 80;
- # the domain name it will serve for
- server_name ****; # substitute your machine's IP address or F$
- charset utf-8;
- # max upload size
- client_max_body_size 75M; # adjust to taste
- # Django media
- location /media {
- alias /home/aggosh/public_html/***/media; # your Django pro$
- }
- location /static {
- alias /home/aggosh/public_html/***/static; # your Django pro$
- }
- # Finally, send all non-media requests to the Django server.
- location / {
- uwsgi_pass django;
- include /home/aggosh/public_html/***/deploy/uwsgi_params$
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement