]> git.pld-linux.org Git - packages/mythplugins.git/blob - mythweb.conf
- simplified incompatibile macro definition for fftw3 usage in mythmusic
[packages/mythplugins.git] / mythweb.conf
1 # $Id$
2
3 # Apache config for MythWeb.
4 # See http://www.mythtv.org/ for information about MythTV itself.
5
6 # MythTV now uses the correct file suffix for mpeg files, so all .nuv files
7 # should actually be NuppleVideo. However, Apache probably doesn't know what
8 # those are, so we should tell it.
9 AddType video/nuppelvideo .nuv
10
11 Alias /mythweb/image_cache /var/cache/mythweb/image_cache
12 <Directory /var/cache/mythweb/image_cache>
13         AuthType Basic
14         AuthName "MythTV"
15         AuthUserFile /etc/webapps/mythweb/htpasswd
16         Require valid-user
17         Allow from all
18 </Directory>
19
20 Alias /mythweb /usr/share/mythweb
21 <Directory /usr/share/mythweb>
22     AuthType Basic
23     AuthName "MythTV"
24     AuthUserFile /etc/webapps/mythweb/htpasswd
25     Require valid-user
26     Allow from all
27
28 # Some special instructions for the PHP files of MythWeb.
29 <FilesMatch "\.php$">
30     #
31     # Use the following environment settings to tell MythWeb where you want it to
32     # look to connect to the database, the name of the database to connect to, and
33     # the authentication info to use to connect.  The defaults will usually work
34     # fine unless you've changed mythtv's mysql.txt file, or are running MythWeb on
35     # a different server from your main backend.  Make sure you have mod_env enabled.
36     #
37 <IfModule mod_env.c>
38     SetEnv db_server        "localhost"
39     SetEnv db_name          "mythconverg"
40     SetEnv db_login         "mythtv"
41     SetEnv db_password      "mythtv"
42 </IfModule>
43
44     # By default, php will always search the current directory for include files,
45     # but if you wish to install these directories outside of the current path
46     # (eg. for security reasons), set this variable to the directory that
47     # contains the directories like languages and templates.  eg.
48     #
49     #   setenv include_path      "/usr/share/mythweb"
50
51     #  These settings are intended for apache 2.x.  If your version of apache
52     #  doesn't support php_value, or things like memory_limit aren't working
53     #  as expected, then use these settings as examples for your own php.ini
54     #  files.
55
56     php_value safe_mode                     0
57
58     php_value memory_limit                  32M
59
60     php_value session.save_path             /var/cache/mythweb/php_sessions
61
62     php_value register_globals              0
63     php_value magic_quotes_gpc              0
64     php_value file_uploads                  0
65     php_value allow_url_fopen               On
66
67     php_value zlib.output_handler           Off
68     php_value zlib.output_compression       16384
69     php_value zlib.output_compression_level 4
70
71     php_value url_rewriter.tags             a=href,area=href,frame=src,input=src,form=action
72
73 # These values do not change - bug in php
74     php_value output_handler                NULL
75     php_value short_open_tag                1
76
77 # php_flag does not work in older versions of php
78     php_flag output_handler                 "NULL"
79     php_flag short_open_tag                 "On"
80 </FilesMatch>
81
82 #
83 # The settings below relate specifically to mod_rewrite and the rewrite engine
84 # used to make the MythWeb user experience a little easier to deal with by
85 # simplifying the URL's neeced to access the various sections.  Do not touch
86 # these settings.
87 #
88
89 <IfModule mod_rewrite.c>
90 # Turn on the rewrite engine
91     RewriteEngine  on
92     RewriteBase    /mythweb/
93
94 # Skip out early if we've already been through rewrites,
95 # or if this is a /css/, /js/ or /cache/ directory request.
96     RewriteRule    ^(css|data|images|js|themes|skins|[a-z_]+\.php)(/|$)     -     [L]
97
98 # Redirect most of the remaining URL requests to the main cooktools script.
99 # It will then handle any requests given to it.
100     RewriteRule     ^(.+)$                  mythweb.php/$1              [QSA,L]
101     RewriteRule     ^(.*)$                  mythweb.php                 [QSA,L]
102
103 # If you're experiencing trouble with the previous line in your copy of apache,
104 # you could also use something like:
105 #    RewriteRule     ^([\w\-]+(/.*)?)?$      mythweb.php?PATH_INFO=/$1   [L,QSA]
106 </IfModule>
107
108 </Directory>
109
110 # vim: filetype=apache
This page took 0.036997 seconds and 3 git commands to generate.