SOURCES (DEVEL): mythweb.conf - fix mod_rewrite
glen
glen at pld-linux.org
Sun Jan 8 01:23:48 CET 2006
Author: glen Date: Sun Jan 8 00:23:48 2006 GMT
Module: SOURCES Tag: DEVEL
---- Log message:
- fix mod_rewrite
---- Files affected:
SOURCES:
mythweb.conf (1.4.2.3 -> 1.4.2.4)
---- Diffs:
================================================================
Index: SOURCES/mythweb.conf
diff -u SOURCES/mythweb.conf:1.4.2.3 SOURCES/mythweb.conf:1.4.2.4
--- SOURCES/mythweb.conf:1.4.2.3 Sun Jan 8 00:32:12 2006
+++ SOURCES/mythweb.conf Sun Jan 8 01:23:43 2006
@@ -3,6 +3,11 @@
# Apache config for MythWeb.
# See http://www.mythtv.org/ for information about MythTV itself.
+# MythTV now uses the correct file suffix for mpeg files, so all .nuv files
+# should actually be NuppleVideo. However, Apache probably doesn't know what
+# those are, so we should tell it.
+AddType video/nuppelvideo .nuv
+
Alias /mythweb/image_cache /var/cache/mythweb/image_cache
<Directory /var/cache/mythweb/image_cache>
<IfModule !mod_auth.c>
@@ -35,11 +40,6 @@
allow from all
</IfModule>
-# MythTV now uses the correct file suffix for mpeg files, so all .nuv files
-# should actually be NuppleVideo. However, Apache probably doesn't know what
-# those are, so we should tell it.
-AddType video/nuppelvideo .nuv
-
# Some special instructions for the PHP files of MythWeb.
<FilesMatch "\.php$">
#
@@ -92,6 +92,7 @@
# php_flag does not work in older versions of php
php_flag output_handler "NULL"
php_flag short_open_tag "On"
+</FilesMatch>
#
# The settings below relate specifically to mod_rewrite and the rewrite engine
@@ -103,6 +104,7 @@
<IfModule mod_rewrite.c>
# Turn on the rewrite engine
RewriteEngine on
+ RewriteBase /mythweb/
# Skip out early if we've already been through rewrites,
# or if this is a /css/, /js/ or /cache/ directory request.
@@ -118,8 +120,6 @@
# RewriteRule ^([\w\-]+(/.*)?)?$ mythweb.php?PATH_INFO=/$1 [L,QSA]
</IfModule>
-</FilesMatch>
-
</Directory>
-# vim: filetype=apache ts=4 sw=4 et
+# vim: filetype=apache
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/mythweb.conf?r1=1.4.2.3&r2=1.4.2.4&f=u
More information about the pld-cvs-commit
mailing list