Unverified Commit 82e99dd7 authored by Tom Moulard's avatar Tom Moulard
Browse files

blog: adding files

parent 4e45fa9d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
*.log
blog/blog*
blog/nginx/conf/www

blog/blog/.gitkeep

0 → 100644
+0 −0

Empty file added.

+19 −0
Original line number Diff line number Diff line
error_log /var/log/nginx/error.log;
log_format main_log_format '$remote_addr - $remote_user [$time_local] '
                           '"$request" $status $body_bytes_sent '
                           '"$http_referer" "$http_user_agent" "$gzip_ratio"';
server {
    access_log /var/log/nginx/access.log main_log_format;
    root /etc/nginx/conf.d/www;
    index index.html;

    location /{
        try_files $uri $uri/ =404;
        autoindex on;
    }
    # deny all direct access for these folders
    location ~* /(.git|cache|bin|logs|backup|tests)/.*$ { return 403; }
    location ~* ^.+\.(ico|js|gif|jpg|jpeg|png|bmp)$ {
        expires 30d;
    }
}
+0 −0

Empty file added.