Skip to content

Instantly share code, notes, and snippets.

@likebeta likebeta/nginx.conf
Last active Sep 13, 2015

What would you like to do?
nginx config simple
server {
listen 80;
charset utf-8;
location /download/ {
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
charset utf-8;
location ~ ^.* {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.