charset
" in /sys/lib/httpd.conf
Pegasus is a flexible httpd server. If you want to know more about current Pegasus, you need to read changes after Pegasus 2.2. These changes are in the documents, Pegasus 2.3 and Pegasus 2.4.
charset
" in /sys/lib/httpd.conf
charset
" is introduced in /sys/lib/httpd.conf
. The usage is:charset utf-8 # HTTP header charset. The default is latin(iso-8859-1)With this parameter, HTTP header "
Content-Type
" becomesContent-Type: text/plain; charset=utf-8which tells clients that plain text submitted from httpd is encoded in utf-8.
Parameter "charset
" in /sys/lib/httpd.conf
acts not only "text/plain
" but also all "text/*
" in "Content-Type
" in HTTP headers. Thus "meta
" tag such as
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">in HTML documents is unnecessary.
NB: Note that according to RFC2616, the "meta
" tag is not only unnecessary but also ineffective which means web documents must be written in utf-8 encoding.
/etc
in httpd name space. The file has been in accessible name space of CGIs. Although passwords are encrypted, it's safer to hide them from CGIs. Now the problem has been fixed as follows: files in /etc
are hided from non-authenticated CGIs. Authenticated users can see files in /etc
via CGI as it has been.
timezone
" is passed to CGI so that "date
" works in CGI script