Morphix: fixed Apache config (needs to restrict LocationMatch to
[openxpki.git] / trunk / package / morphix / openxpki-mason-mod_perl.conf
blob447579848834832e196198004e2cd86d7c07f75a
2 # Simple Mason configuration via httpd.conf directives.
5 PerlAddVar MasonDataDir '/var/cache/mason'
6 PerlAddVar MasonCompRoot '/var/www/openxpki'
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 /openxpki/errors/internal_server_error_en.htm
14 # Serve these requests through Mason.
15 <LocationMatch "/openxpki/.*\.html$">
16   SetHandler perl-script
17   PerlHandler OpenXPKI::Client::HTML::Mason::ApacheHandler
18 </LocationMatch>
19 # this is necessary to make internet explorer happy because it do not understand content types
20 <LocationMatch "/openxpki/.*\.crt$">
21   SetHandler perl-script
22   PerlHandler OpenXPKI::Client::HTML::Mason::ApacheHandler
23 </LocationMatch>
25 # Hide private components from users.
26 <LocationMatch "(handler|mhtml)$">
27   Order allow,deny
28   Deny from all
29 </LocationMatch>
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
45 SetEnv OPENXPKI_SOCKET_FILE "/var/openxpki/openxpki.socket"
46 SetEnv OPENXPKI_MASON_SESSION_DIR "/var/openxpki/mason_sessions"
47 SetEnv OPENXPKI_SOCKET_FILE "/var/openxpki/openxpki.socket"
48 SetEnv OPENXPKI_MASON_SESSION_DIR "/var/openxpki/mason_sessions"