-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
69 lines (41 loc) · 1.6 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
mod_url README document for Lighttpd
# $Id: README,v 1.4 2014-03-06 09:38:34 oops Exp $
mod_url is lighttpd module that fix mismatched URL encoding between server and client.
This module is operated on lighttpd 1.4.x.
1. Compile
First, edit configura.ac
1. open the configure.ac
2. search do_build variable
3. add mod_url in do_build variable
Second, edit src/Makefile.am and input follow lines
lib_LTLIBRARIES += mod_url .la
mod_accesslog_la_SOURCES = mod_url .c
mod_accesslog_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
mod_accesslog_la_LIBADD = $(common_libadd)
If you build with libiconv, set mod_accesslog_la_LIBADD to follows:
mod_accesslog_la_LIBADD = -liconv $(common_libadd)
And, build lighttpd
shell> autoreconf -fi
shell> ./configure
shell> make
shell> make install
2. Usage
1. Edit your lighttpd configuration file.
Regist mod_url module on server.module directive.
server.modules = (
...,
"mod_url"
)
2. Activate the mod_url and set encoding variables properly:
url.debug :
Default value is disable [enable/disable]
Print debug messages at error log file.
url.enabled :
Default value is disable [enable/disable]
Activate mod_url.
url.server_encoding :
default value is EUC-KR
Encoding of Server side. Value is must one of iconv's ENCODINGs
url.client_encoding :
default value is UTF-8
Encoding of Client side. Value is must one of iconv's ENCODINGs