How do I serve html thru svn ? (Can svn act as a web server?)

SVN is not a webserver. I guess you are talking about Subversion's Apache module!? If you want to view .html files as HTML then you should set svn:mime-type=text/html:

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

See Properties in the SVN Book.

Also, if the svn:mime-type property is set, then the Subversion Apache module will use its value to populate the Content-type: HTTP header when responding to GET requests. This gives a crucial clue about how to display a file when perusing your repository with a web browser.

Maybe you can configure your subversion client or server with the following lines in the 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

This will automatically set the properties for new files.

Tags:

Html

Svn