You are on page 1of 1

server {

listen 80;
server_name rockstand.in;
return 301 http://www.rockstand.in$request_uri;
}

server {
listen 80;
server_name 180.151.100.130 www.rockstand.in;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

client_max_body_size 900M;

location ~* \.(htaccess|htpasswd|log|sh|inc|bak|epub) {
deny all;
}

location ~ /media/uploads/(.+)\.pdf {
deny all;
}

location /static {
root /code/rocksocialrest/rocksocialrest/;
}

location /media {
root /code/rocksocialrest/rocksocialrest/;
}

location /sitemap.xml {
root /opt;
}

location /sitemap.txt {
root /opt;
}

location /robots.txt {
root /opt;
}

location /nginx_status {
# Turn on stats
stub_status on;
access_log off;
allow 127.0.0.1;
}

location / {
uwsgi_pass unix:/tmp/uwsgi_new.sock;
uwsgi_read_timeout 600;
uwsgi_send_timeout 600;
include /etc/nginx/uwsgi_params;
}
}

You might also like