Changes

Jump to navigation Jump to search
2,808 bytes added ,  16:52, 7 March 2012
no edit summary
buffers.visualizers.apa.categories.declarations_core = {
'AcceptFilter', 'AcceptMutex', 'AcceptPathInfo', 'AccessFileName', 'AddDefaultCharset', 'AllowEncodedSlashes', 'AllowOverride', 'AssignUserId', 'AuthName', 'AuthType',
'CGIMapExtension', 'ChildPerUserId', 'ContentDigest', 'CoreDumpDirectory',
'DefaultType', 'DocumentRoot',
'IdentityCheck', 'Include',
'KeepAlive', 'KeepAliveTimeout',
'LimitInternalRecursion', 'LimitRequestBody', 'LimitRequestFields', 'LimitRequestFieldsize', 'LimitRequestLine', 'LimitXMLRequestBody', 'Listen', 'ListenBacklog', 'LockFile', 'LogLevel', 'MaxClients', 'MaxKeepAliveRequests', 'MaxMemFree', 'MaxRequestsPerChild', 'MaxSpareServers', 'MaxSpareThreads', 'MaxSpareThreadsPerChild', 'MaxThreads', 'MinSpareServers', 'MinSpareThreads',
'NameVirtualHost', 'NumServers',
'Options',
'PidFile',
'Require', 'RLimitCPU', 'RLimitMEM', 'RLimitNPROC',
'Satisfy', 'ScoreBoardFile', 'ScriptInterpreterSource', 'SendBufferSize', 'ServerAdmin', 'ServerAlias', 'ServerLimit', 'ServerName', 'ServerPath', 'ServerRoot', 'ServerSignature', 'ServerTokens', 'SetHandler', 'SetInputFilter', 'SetOutputFilter', 'StartServers', 'StartThreads',
'ThreadLimit', 'ThreadsPerChild', 'ThreadStackSize', 'TimeOut', 'TraceEnable',
'UseCanonicalName', 'User',
'AuthBasicAuthoritative', 'AuthBasicProvider',
-- mod_auth_digest
'AuthDigestAlgorithm', 'AuthDigestDomain', 'AuthDigestNcCheck', 'AuthDigestNonceFormat', 'AuthDigestNonceLifetime', 'AuthDigestProvider', 'AuthDigestQop', 'AuthDigestShmemSize',
-- mod_authn_anon
'Anonymous', 'Anonymous_Authoritative', 'Anonymous_LogEmail', 'Anonymous_MustGiveEmail', 'Anonymous_NoUserID', 'Anonymous_VerifyEmail',
-- mod_authn_dbd
'AuthDBDUserPWQuery', 'AuthDBDUserRealmQuery',
'AuthUserFile',
-- mod_authnz_ldap
'AuthLDAPBindDN', 'AuthLDAPBindPassword', 'AuthLDAPCharsetConfig', 'AuthLDAPCompareDNOnServer', 'AuthLDAPDereferenceAliases', 'AuthLDAPGroupAttribute', 'AuthLDAPGroupAttributeIsDN', 'AuthLDAPRemoteUserAttribute', 'AuthLDAPRemoteUserIsDN', 'AuthLDAPUrl', 'AuthzLDAPAuthoritative',
-- mod_authz_dbm
'AuthDBMGroupFile', 'AuthzDBMAuthoritative', 'AuthzDBMType',
'AuthzUserAuthoritative',
-- mod_autoindex
'AddAlt', 'AddAltByEncoding', 'AddAltByType', 'AddDescription', 'AddIcon', 'AddIconByEncoding', 'AddIconByType', 'DefaultIcon', 'HeaderName', 'IndexHeadInsert', 'IndexIgnore', 'IndexOptions', 'IndexOrderDefault', 'IndexStyleSheet', 'ReadmeName',
-- mod_cache
'CacheDefaultExpire', 'CacheDisable', 'CacheEnable', 'CacheIgnoreCacheControl', 'CacheIgnoreHeaders', 'CacheIgnoreNoLastMod', 'CacheIgnoreQueryString', 'CacheLastModifiedFactor',
'CacheMaxExpire', 'CacheStoreNoStore', 'CacheStorePrivate',
-- mod_cern_meta
'ISAPIAppendLogToErrors', 'ISAPIAppendLogToQuery', 'ISAPICacheFile', 'ISAIPFakeAsync', 'ISAPILogNotSupported', 'ISAPIReadAheadBuffer',
-- mod_ldap
'LDAPCacheEntries', 'LDAPCacheTTL', 'LDAPConnectionTimeout', 'LDAPOpCacheEntries', 'LDAPOpCacheTTL', 'LDAPSharedCacheFile', 'LDAPSharedCacheSize', 'LDAPTrustedClientCert',
'LDAPTrustedGlobalCert', 'LDAPTrustedMode', 'LDAPVerifyServerCert',
-- mod_log_config
'ForensicLog',
-- mod_mem_cache
'MCacheMaxObjectCount', 'MCacheMaxObjectSize', 'MCacheMaxStreamingBuffer', 'MCacheMinObjectSize', 'MCacheRemovalAlgorithm', 'MCacheSize',
-- mod_mime
'AddCharset', 'AddEncoding', 'AddHandler', 'AddInputFilter', 'AddLanguage', 'AddOutputFilter', 'AddType', 'DefaultLanguage', 'ModMimeUsePathInfo', 'MultiviewsMatch', 'RemoveCharset',
'RemoveEncoding', 'RemoveHandler', 'RemoveInputFilter', 'RemoveLanguage', 'RemoveOutputFilter', 'RemoveType', 'TypesConfig',
-- mod_mime_magic
'', 'NWSSLTrustedCerts', 'NWSSLUpgradeable', 'SecureListen',
-- mod_proxy
'AllowCONNECT', 'BalancerMember', 'NoProxy', 'ProxyBadHeader', 'ProxyBlock', 'ProxyDomain', 'ProxyErrorOverride', 'ProxyFtpDirCharset', 'ProxyIOBufferSize', 'ProxyMaxForwards', 'ProxyPass', 'ProxyPassInterpolateEnv', 'ProxyPassMatch', 'ProxyPassReverse', 'ProxyPassReverseCookieDomain', 'ProxyPassReverseCookiePath', 'ProxyPreserveHost', 'ProxyReceiveBufferSize', 'ProxyRemote',
'ProxyRemoteMatch', 'ProxyRequests', 'ProxySet', 'ProxyStatus', 'ProxyTimeout', 'ProxyVia',
-- mod_rewrite
'CheckCaseOnly', 'CheckSpelling',
-- mod_ssl
'SSLCACertificateFile', 'SSLCACertificatePath', 'SSLCADNRequestFile', 'SSLCADNRequestPath', 'SSLCARevocationFile', 'SSLCARevocationPath', 'SSLCertificateChainFile', 'SSLCertificateFile',
'SSLCertificateKeyFile', 'SSLCipherSuite', 'SSLCryptoDevice', 'SSLEngine', 'SSLHonorCipherOrder', 'SSLMutex', 'SSLOptions',
'SSLPassPhraseDialog', 'SSLProtocol', 'SSLProxyCACertificateFile', 'SSLProxyCACertificatePath', 'SSLProxyCARevocationFile', 'SSLProxyCARevocationPath', 'SSLProxyCipherSuite', 'SSLProxyEngine',
'SSLProxyMachineCertificateFile', 'SSLProxyMachineCertificatePath',
'SSLProxyProtocol', 'SSLProxyVerify', 'SSLProxyVerifyDepth', 'SSLRandomSeed', 'SSLRenegBufferSize', 'SSLRequire', 'SSLRequireSSL', 'SSLSessionCache', 'SSLSessionCacheTimeout', 'SSLUserName',
'SSLVerifyClient', 'SSLVerifyDepth',
-- mod_status
'ldap-user', 'ldap-group', 'ldap-dn', 'ldap-attribute', 'ldap-filter',
-- mod_autoindex
'DescriptionWidth', 'FancyIndexing', 'FoldersFirst', 'IconHeight', 'IconsAreLinks', 'IconWidth', 'NameWidth', 'ScanHTMLTitles', 'SuppressColumnSorting', 'SuppressDescription',
'SuppressHTMLPreamble', 'SuppressLastModified', 'SuppressSize', 'TrackModified',
'Ascending', 'Descending', 'Name', 'Date', 'Description',
'nocontent', 'referer', 'map',
-- mod_ldap
'CA_DER', 'CA_BASE64', 'CA_CERT7_DB', 'CA_SECMOD', 'CERT_DER', 'CERT_BASE64', 'CERT_KEY3_DB', 'CERT_NICKNAME', 'CERT_PFX', 'KEY_DER', 'KEY_BASE64', 'KEY_PFX',
-- mod_mime
'NegotiatedOnly', 'Filters', 'Handlers',
'optional', 'optional_no_ca',
'file', 'exec', 'egd', 'dbm', 'shm',
'SSLv2', 'SSLv3', 'TLSv1', 'kRSA', 'kHDr', 'kDHd', 'kEDH', 'aNULL', 'aRSA', 'aDSS', 'aRH', 'eNULL', 'DES', '3DES', 'RC2', 'RC4', 'IDEA', 'MD5', 'SHA1', 'SHA', 'EXP', 'EXPORT40', 'EXPORT56', 'LOW',
'MEDIUM', 'HIGH', 'RSA', 'DH', 'EDH', 'ADH', 'DSS', 'NULL',
-- mod_usertrack
buffers.visualizers.apa.categories.sections = {
'<Directory', '</Directory', '<DirectoryMatch', '</DirectoryMatch', '<Files', '</Files', '<FilesMatch', '</FilesMatch', '<IfModule', '</IfModule', '<IfDefine', '</IfDefine', '<Location', '</Location', '<LocationMatch', '</LocationMatch', '<VirtualHost', '</VirtualHost', '<ProxyMatch', '</ProxyMatch'
}
buffers.visualizers.apa.words = { }
end
</pre>
 
== Sample Page ==
Here is an example how to use these files:
 
<texcode>
\setupcolors[state=start]
\definecolor[colorprettyone] [r=.9, g=.0, b=.0] % red
\definecolor[colorprettytwo] [r=.0, g=.8, b=.0] % green
\definecolor[colorprettythree][r=.0, g=.0, b=.9] % blue
\definecolor[colorprettyfour] [s=0.60] % gray
\definecolor[colorprettyfive] [orange]
\definepalet[colorpretty]
[prettyone=colorprettyone,
prettytwo=colorprettytwo,
prettythree=colorprettythree,
prettyfour=colorprettyfour,
prettyfive=colorprettyfive]
% Apache httpd.conf listings
\installprettytype[APA][APA]
\definetyping [APA] [option=APA]
\definepalet [APAcolorpretty][colorpretty]
\setuptyping [APA] [bodyfont=10pt]
% Python listings
\installprettytype[PY][PY]
\definetyping [PY] [option=PY]
\definepalet [PYcolorpretty] [colorpretty]
\setuptyping [PY] [bodyfont=10pt]
% buildout.cfg listings
\installprettytype[CFG][CFG]
\definetyping [CFG] [option=CFG]
\definepalet [CFGcolorpretty][colorpretty]
\setuptyping [CFG] [bodyfont=10pt]
 
\starttext
\section{httpd.conf sample}
\startAPA
<VirtualHost *>
ServerName www.example.com
ErrorLog /var/log/apache2/error.log
LogLevel error
CustomLog /var/log/apache2/access.log combinedio
 
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
 
# allow access to ZMI only from local network
<LocationMatch /manage>
Order Deny,Allow
Deny from all
Allow from 10.
</LocationMatch>
</VirtualHost>
\stopAPA
 
\section{Python sample}
\startPY
#!/usr/local/bin/python
 
import os.path, sys
 
# Just a comment
foo = os.environ.get('FOO')
bar = os.environ.get('BAR')
 
if foo:
foo = os.path.realpath(foobar)
elif bar:
bar = os.path.realpath(bar)
else:
print >> sys.stderr, '''
FOO or BAR need to be set!
'''
 
# Another comment
def test_foobar_title(self):
nothing_special = getattr(self.types, 'FooBar')
\stopPY
 
\section{buildout.cfg sample}
\startCFG
# Use this section to install and configure a Zope
# Enterprise Objects server.
# For options see http://pypi.python.org/pypi/plone.recipe.zope2zeoserver
[zeoserver]
recipe = plone.recipe.zope2zeoserver
zope2-location = ${zope2:location}
zeo-address = ${buildout:zeo-address}
effective-user = zeo
# Put the log, pid and socket files in var/zeoserver
zeo-log = ${buildout:directory}/var/zeoserver/zeoserver.log
pid-file = ${buildout:directory}/var/zeoserver/zeoserver.pid
socket-name = ${buildout:directory}/var/zeoserver/zeo.zdsock
\stopCFG
\stoptext
</texcode>
 
[[Category:LuaTeX]]

Navigation menu