tclhttpd

Check-in [89bec73d35]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix for [51ace88134] -- /tmp in paths doesn't work for Windows
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 89bec73d352e829ccbf81e9c364e12eb5b4ab8bd
User & Date: gwlester 2014-06-03 03:36:58
References
2014-06-03
03:40 Review ticket [51ace88134]: /tmp in paths doesn't work for Windows plus 7 other changes artifact: baf0ec1e8b user: gwlester
Context
2014-06-03
03:49
Fix for [51ace89534] - dirlist fails if dirname contains glob metacharacters check-in: bc52ac2218 user: gwlester tags: trunk
03:36
Fix for [51ace88134] -- /tmp in paths doesn't work for Windows check-in: 89bec73d35 user: gwlester tags: trunk
03:17
Fix for bug [51ace89034] -- Stderr not defined in Thread_Start check-in: 587b12376d user: gwlester tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to bin/tclhttpd.rc.

1
2
3
4
5
6
7
8
9
10
11
12
..
16
17
18
19
20
21
22


23
24
25
26
27
28
29
...
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
...
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# tclhttpd.rc
#
# This is the default configuration file for TclHttpd
#
# Note - you should assume that all the paramters listed here 
# are required in one place or another.  If you want to "delete"
# a parameter you should set the associated value to the
# empty string, which is written either "" or {}
#
# This file is processed in a safe interpreter.  The only side
# effects it has are through the Config command.  Given two arguments,
# the Config command sets a parameter.  With a single argument,
................................................................................
# argument alternative (see httpd.tcl)
# You can specify a value on the command line to override
# what is in this configuration file.

# docRoot - the name of the file system directory containing
# the root of your document tree.  This is conditional so you
# can run from the source distribution or after doing "make install"



foreach d [list \
	[file join [Config home] ../htdocs] \
	[file join [Config home] ../tclhttpd/htdocs]] {
    if {[file isdirectory $d]} {
	Config docRoot $d
    }
................................................................................

# The parameters below here are not settable via the command line

# LogFile - the file used for standard logging informaation.
# This is actually the prefix of the name.  The port and current date stamp
# is append to this file, and it is rolled every night at midnight

Config LogFile	[file join /tmp log ]

# LogFlushMinutes - how frequently the log file is flushed to disk.
# Use 0 to have each URL request cause a log flush.

Config LogFlushMinutes 0

# LogDebug - set up a debug logfile - default: no
................................................................................
Config SSL_CERTFILE	[file join [Config SSL_CADIR] server.pem]

# SSL_KEYFILE - The server's key file.  If this is empty,
# then just use the SSL_CERTFILE

Config SSL_KEYFILE	[file join [Config SSL_CADIR] skey.pem]

# USE_SSL2 - Allow the use of SSL version 2 
# (You cannot get this with a "no patents" build of OpenSSL)

Config USE_SSL2		1

# USE_SSL3 - Allow the use of SSL version 3

Config USE_SSL3		1



|







 







>
>







 







|







 







|







1
2
3
4
5
6
7
8
9
10
11
12
..
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
...
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# tclhttpd.rc
#
# This is the default configuration file for TclHttpd
#
# Note - you should assume that all the paramters listed here
# are required in one place or another.  If you want to "delete"
# a parameter you should set the associated value to the
# empty string, which is written either "" or {}
#
# This file is processed in a safe interpreter.  The only side
# effects it has are through the Config command.  Given two arguments,
# the Config command sets a parameter.  With a single argument,
................................................................................
# argument alternative (see httpd.tcl)
# You can specify a value on the command line to override
# what is in this configuration file.

# docRoot - the name of the file system directory containing
# the root of your document tree.  This is conditional so you
# can run from the source distribution or after doing "make install"

package require fileutil

foreach d [list \
	[file join [Config home] ../htdocs] \
	[file join [Config home] ../tclhttpd/htdocs]] {
    if {[file isdirectory $d]} {
	Config docRoot $d
    }
................................................................................

# The parameters below here are not settable via the command line

# LogFile - the file used for standard logging informaation.
# This is actually the prefix of the name.  The port and current date stamp
# is append to this file, and it is rolled every night at midnight

Config LogFile	[file join [::fileutil::tempdir] log ]

# LogFlushMinutes - how frequently the log file is flushed to disk.
# Use 0 to have each URL request cause a log flush.

Config LogFlushMinutes 0

# LogDebug - set up a debug logfile - default: no
................................................................................
Config SSL_CERTFILE	[file join [Config SSL_CADIR] server.pem]

# SSL_KEYFILE - The server's key file.  If this is empty,
# then just use the SSL_CERTFILE

Config SSL_KEYFILE	[file join [Config SSL_CADIR] skey.pem]

# USE_SSL2 - Allow the use of SSL version 2
# (You cannot get this with a "no patents" build of OpenSSL)

Config USE_SSL2		1

# USE_SSL3 - Allow the use of SSL version 3

Config USE_SSL3		1

Changes to htdocs/access/htman.tml.

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    <p>Having secured /htaccess, one can freely use it to secure any directory or domain.</p>

    <h3>Configuration Options</h3>
    <p>Several configuration options in tclhttpd.rc control how authentication occurs:</p>
    <dl>
      <dt>Auth</dt>
      <dd>The default webmaster password.
	<p>If this is undefined, a new random password is created in /tmp/tclhttpd.default every time the server is restarted.  If it is defined, it is the plaintext default password for a user called webmaster, who has (by default) complete access to the Access Control Editor.</p>
	<p>After boostrapping, it would be advisable to set this value to ""</p>
      </dd>
      <dt>AuthUserFile</dt>
      <dd><p>The default name of the file containing web user passwords (note, this should be different from your system's default password file, if any)</p></dd>
      <dt>AuthGroupFile</dt>
      <dd><p>The default name of a file containing web groups.</p></dd>
    </dl>

<!-- Created: Tue Mar 23 01:47:36 EST 2004 -->
<!-- hhmts start -->
Last modified: Tue Mar 23 01:47:39 EST 2004
<!-- hhmts end -->
[mypage::footer]






|













23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    <p>Having secured /htaccess, one can freely use it to secure any directory or domain.</p>

    <h3>Configuration Options</h3>
    <p>Several configuration options in tclhttpd.rc control how authentication occurs:</p>
    <dl>
      <dt>Auth</dt>
      <dd>The default webmaster password.
	<p>If this is undefined, a new random password is created in [::fileutil::tempdir]/tclhttpd.default every time the server is restarted.  If it is defined, it is the plaintext default password for a user called webmaster, who has (by default) complete access to the Access Control Editor.</p>
	<p>After boostrapping, it would be advisable to set this value to ""</p>
      </dd>
      <dt>AuthUserFile</dt>
      <dd><p>The default name of the file containing web user passwords (note, this should be different from your system's default password file, if any)</p></dd>
      <dt>AuthGroupFile</dt>
      <dd><p>The default name of a file containing web groups.</p></dd>
    </dl>

<!-- Created: Tue Mar 23 01:47:36 EST 2004 -->
<!-- hhmts start -->
Last modified: Tue Mar 23 01:47:39 EST 2004
<!-- hhmts end -->
[mypage::footer]