代码之家  ›  专栏  ›  技术社区  ›  smartnut007

如何通过SVN提供HTML?(SVN能否充当Web服务器?)

  •  12
  • smartnut007  · 技术社区  · 14 年前

    我已经将javadocs(html文件)签入SVN。但是,当我通过浏览器访问HTML文件时,它会被解释为文本。如何修复此问题?

    1 回复  |  直到 9 年前
        1
  •  11
  •   Søren Løvborg    12 年前

    svn:mime-type=text/html

    svn propset svn:mime-type text/html *.html
    

    Properties

    svn:mime-type Content-type:

    config file

    [miscellany]
    ### Automatic properties are defined in the section 'auto-props'.
    enable-auto-props = yes
    
    ### Section for configuring automatic properties.
    [auto-props]
    *.html = svn:mime-type=text/html