3 # Apache config for MythWeb.
4 # See http://www.mythtv.org/ for information about MythTV itself.
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
11 Alias /mythweb/image_cache /var/cache/mythweb/image_cache
12 <Directory /var/cache/mythweb/image_cache>
15 AuthUserFile /etc/webapps/mythweb/htpasswd
20 Alias /mythweb /usr/share/mythweb
21 <Directory /usr/share/mythweb>
24 AuthUserFile /etc/webapps/mythweb/htpasswd
28 # Some special instructions for the PHP files of MythWeb.
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.
38 SetEnv db_server "localhost"
39 SetEnv db_name "mythconverg"
40 SetEnv db_login "mythtv"
41 SetEnv db_password "mythtv"
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.
49 # setenv include_path "/usr/share/mythweb"
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
58 php_value memory_limit 32M
60 php_value session.save_path /var/cache/mythweb/php_sessions
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
67 php_value zlib.output_handler Off
68 php_value zlib.output_compression 16384
69 php_value zlib.output_compression_level 4
71 php_value url_rewriter.tags a=href,area=href,frame=src,input=src,form=action
73 # These values do not change - bug in php
74 php_value output_handler NULL
75 php_value short_open_tag 1
77 # php_flag does not work in older versions of php
78 php_flag output_handler "NULL"
79 php_flag short_open_tag "On"
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
89 <IfModule mod_rewrite.c>
90 # Turn on the rewrite engine
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]
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]
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]
110 # vim: filetype=apache