HTTPSRV: new attribute directoryindex

HTTPSRV: directoryindex is loaded no matter if the request contains a trailing / or not
HTTPSRV: HTTPSRV_CGI() finds the correct device by name (bugfix)
HTTPSRV: undef unregisters extension

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1849 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert
2012-09-16 09:37:30 +00:00
parent 68e6f9b012
commit 17323f1cc9
2 changed files with 71 additions and 33 deletions

View File

@@ -5371,7 +5371,7 @@ To send the data, both send or write could be used.<br>
<b>Attributes</b>
<br><br>
<ul>
n/a
<li>directoryindex: if the request is sent with no filename, i.e. the infix (with or without trailing slash) only, the file given in this attribute is loaded. Defaults to <code>index.html</code>.</li>
</ul>
<br><br>
@@ -5381,7 +5381,7 @@ To send the data, both send or write could be used.<br>
The above example on <code>http://hostname:8083/fhem</code> will return the file
<code>/usr/share/jsfrontend/foo.html</code> for <code>http://hostname:8083/fhem/jsf/foo.html</code>.
If no filename is given, <code>index.html</code> is returned.<p>
If no filename is given, the filename prescribed by the <code>directoryindex</code> attribute is returned.<p>
Notice: All links are relative to <code>http://hostname:8083/fhem</code>.
</ul>