]> git.pld-linux.org Git - packages/mythplugins.git/blobdiff - mythweb.conf
- configure alias, secure access (mod_auth optional) and session save path
[packages/mythplugins.git] / mythweb.conf
index 0898904e5074c869a41fc2216809a1b709e0c342..4318ff1c8af54347a36c9281acdf621860736731 100644 (file)
@@ -1,12 +1,24 @@
-#AuthType Basic
-#AuthName "MythTV"
-#AuthUserFile /var/www/htpasswd
-#Require valid-user
+# $Id$
+
+Alias /mythweb /usr/share/mythweb
+<Directory /usr/share/mythweb>
+
+<IfModule !mod_auth.c>
+    deny from all
+    allow from localhost
+</IfModule>
+<IfModule mod_auth.c>
+    AuthType Basic
+    AuthName "MythTV"
+    AuthUserFile /etc/mythweb/htpasswd
+    Require valid-user
+    allow from all
+</IfModule>
 
 # If you have nuv files that are actually mpeg2 files, uncomment this
 #AddType video/mpeg .nuv
 # If you have normal software-encoded nuv files, use this type
-AddType video/nuppelvideo .nuv
+#AddType video/nuppelvideo .nuv
 
 # Some special handlers for php
 #  These settings are intended for apache 2.x.  If your version of apache
@@ -18,7 +30,7 @@ AddType video/nuppelvideo .nuv
 
     php_value memory_limit                  32M
 
-    php_value session.save_path             php_sessions
+    php_value session.save_path             /var/cache/mythweb/php_sessions
 
     php_value output_buffering              4096
     php_value register_globals              0
@@ -41,3 +53,7 @@ AddType video/nuppelvideo .nuv
     php_flag short_open_tag                 "On"
 
 </FilesMatch>
+
+</Directory>
+
+# vim: filetype=apache ts=4 sw=4 et
This page took 0.07136 seconds and 4 git commands to generate.