2 # Simple Mason configuration via httpd.conf directives.
5 PerlAddVar MasonDataDir "<path_to_your_var_directory>"
6 PerlAddVar MasonCompRoot "<path_to_your_htdocs_directory>"
7 PerlAddVar MasonAllowGlobals "$context"
8 PerlAddVar MasonAllowGlobals "%session_cache"
10 # System errors are not shown to the user, but just logged to the error log
11 PerlSetVar MasonErrorMode fatal
12 ErrorDocument 500 /errors/internal_server_error_en.htm
14 # Serve these requests through Mason.
15 <LocationMatch "\.html$">
16 SetHandler perl-script
17 PerlHandler OpenXPKI::Client::HTML::Mason::ApacheHandler
19 # this is necessary to make internet explorer happy because it do not understand content types
20 <LocationMatch "\.crt$">
21 SetHandler perl-script
22 PerlHandler OpenXPKI::Client::HTML::Mason::ApacheHandler
25 # Hide private components from users.
26 <LocationMatch "(handler|mhtml)$">
31 # you have to set the locale prefix, the location of the socket file and
32 # the session directory using environment variables
33 # SetEnv OPENXPKI_SOCKET_FILE /path/to/your/openxpki.socket
34 # SetEnv OPENXPKI_LOCALE_PREFIX /path/to/your/share/locale
35 # SetEnv OPENXPKI_MASON_SESSION_DIR /path/to/your/mason/session/dir
37 # You can also limit this webserver or virtual host to a particular PKI
38 # realm by setting the OPENXPKI_PKI_REALM environment variable:
39 # SetEnv OPENXPKI_PKI_REALM I18N_OPENXPKI_DEPLOYMENT_TEST_DUMMY_CA
41 # If you want to have more than english available on the user interface
42 # (note that the interface currently has not been fully translated to
43 # other languages, so YMMV), you can set the OPENXPKI_LANGUAGES variable:
44 # SetEnv OPENXPKI_LANGUAGES ru,en,de