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