Skip to content

Instantly share code, notes, and snippets.

@renyuntao
Forked from lixingcong/my_site.conf
Created April 19, 2018 02:14
Show Gist options
  • Save renyuntao/04d9216d3953440aec1de77aa3be611b to your computer and use it in GitHub Desktop.
Save renyuntao/04d9216d3953440aec1de77aa3be611b to your computer and use it in GitHub Desktop.

Revisions

  1. @lixingcong lixingcong revised this gist Sep 2, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions my_site.conf
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,10 @@
    location ^~ /demo {
    alias /var/www/demo/;
    autoindex on;

    # set to on means use localtime
    autoindex_localtime on;

    # show size with unit 'MB' instead of 'Byte'
    autoindex_exact_size off;
    }
  2. @lixingcong lixingcong created this gist Sep 2, 2016.
    6 changes: 6 additions & 0 deletions my_site.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    location ^~ /demo {
    alias /var/www/demo/;
    autoindex on;
    # set to on means use localtime
    autoindex_localtime on;
    }