]> git.pld-linux.org Git - packages/mythplugins.git/blame - mythweb-apache.conf
- fix shebangs and files, rel 11
[packages/mythplugins.git] / mythweb-apache.conf
CommitLineData
6f2c51ce
ER
1# Apache config for MythWeb.
2# See http://www.mythtv.org/ for information about MythTV itself.
3
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.
7AddType video/nuppelvideo .nuv
8
9Alias /mythweb/image_cache /var/cache/mythweb/image_cache
10<Directory /var/cache/mythweb/image_cache>
11 AuthType Basic
12 AuthName "MythTV"
9619d048 13 AuthUserFile /etc/webapps/mythweb/htpasswd
6f2c51ce
ER
14 Require valid-user
15 Allow from all
16</Directory>
17
1824b804
ER
18Alias /mythweb /usr/share/mythweb
19<Directory /usr/share/mythweb>
1824b804
ER
20 AuthType Basic
21 AuthName "MythTV"
9619d048 22 AuthUserFile /etc/webapps/mythweb/htpasswd
1824b804 23 Require valid-user
6f2c51ce
ER
24 Allow from all
25
26# Some special instructions for the PHP files of MythWeb.
27<FilesMatch "\.php$">
28 #
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.
34 #
35<IfModule mod_env.c>
36 SetEnv db_server "localhost"
37 SetEnv db_name "mythconverg"
38 SetEnv db_login "mythtv"
39 SetEnv db_password "mythtv"
1824b804 40</IfModule>
f923a4ba 41
6f2c51ce
ER
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.
46 #
47 # setenv include_path "/usr/share/mythweb"
48
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
52 # files.
f923a4ba 53
f923a4ba
ER
54 php_value safe_mode 0
55
56 php_value memory_limit 32M
57
1824b804 58 php_value session.save_path /var/cache/mythweb/php_sessions
f923a4ba 59
f923a4ba
ER
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
64
65 php_value zlib.output_handler Off
66 php_value zlib.output_compression 16384
67 php_value zlib.output_compression_level 4
68
69 php_value url_rewriter.tags a=href,area=href,frame=src,input=src,form=action
70
71# These values do not change - bug in php
72 php_value output_handler NULL
73 php_value short_open_tag 1
74
75# php_flag does not work in older versions of php
76 php_flag output_handler "NULL"
77 php_flag short_open_tag "On"
f923a4ba 78</FilesMatch>
ac6be0fb 79
6f2c51ce
ER
80#
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
84# these settings.
85#
86
87<IfModule mod_rewrite.c>
88# Turn on the rewrite engine
89 RewriteEngine on
90 RewriteBase /mythweb/
91
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]
95
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]
100
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]
104</IfModule>
105
1824b804
ER
106</Directory>
107
6f2c51ce 108# vim: filetype=apache
This page took 0.283254 seconds and 4 git commands to generate.