]> git.pld-linux.org Git - packages/mythplugins.git/blob - mythweb.conf
- configure alias, secure access (mod_auth optional) and session save path
[packages/mythplugins.git] / mythweb.conf
1 # $Id$
2
3 Alias /mythweb /usr/share/mythweb
4 <Directory /usr/share/mythweb>
5
6 <IfModule !mod_auth.c>
7     deny from all
8     allow from localhost
9 </IfModule>
10 <IfModule mod_auth.c>
11     AuthType Basic
12     AuthName "MythTV"
13     AuthUserFile /etc/mythweb/htpasswd
14     Require valid-user
15     allow from all
16 </IfModule>
17
18 # If you have nuv files that are actually mpeg2 files, uncomment this
19 #AddType video/mpeg .nuv
20 # If you have normal software-encoded nuv files, use this type
21 #AddType video/nuppelvideo .nuv
22
23 # Some special handlers for php
24 #  These settings are intended for apache 2.x.  If your version of apache
25 #  doesn't support php_value, or things like memory_limit aren't working
26 #  as expected, then use these settings as examples for your own php.ini
27 #  files.
28 <FilesMatch "\.php$">
29     php_value safe_mode                     0
30
31     php_value memory_limit                  32M
32
33     php_value session.save_path             /var/cache/mythweb/php_sessions
34
35     php_value output_buffering              4096
36     php_value register_globals              0
37     php_value magic_quotes_gpc              0
38     php_value file_uploads                  0
39     php_value allow_url_fopen               On
40
41     php_value zlib.output_handler           Off
42     php_value zlib.output_compression       16384
43     php_value zlib.output_compression_level 4
44
45     php_value url_rewriter.tags             a=href,area=href,frame=src,input=src,form=action
46
47 # These values do not change - bug in php
48     php_value output_handler                NULL
49     php_value short_open_tag                1
50
51 # php_flag does not work in older versions of php
52     php_flag output_handler                 "NULL"
53     php_flag short_open_tag                 "On"
54
55 </FilesMatch>
56
57 </Directory>
58
59 # vim: filetype=apache ts=4 sw=4 et
This page took 0.530136 seconds and 4 git commands to generate.